Renamed the Rates tab to Rate History to match the comp. #1915
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<h1>Rate History</h1>
|
||||
<h1><%= l(:rate_label_rate_history) %></h1>
|
||||
<%# TODO: Refactor out of the view once there is a hook in the controller (Post 0.8.0). %>
|
||||
<%# Can't expect everyone to upgrade at the moment %>
|
||||
<% @rates = Rate.history_for_user(@user) %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# English strings go here
|
||||
rate_label_rates: Rates
|
||||
rate_label_rate: Rate
|
||||
rate_label_rate_history: Rate History
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ module RateUsersHelperPatch
|
||||
# Adds a rates tab to the user administration page
|
||||
def user_settings_tabs_with_rate_tab
|
||||
tabs = user_settings_tabs_without_rate_tab
|
||||
tabs << { :name => 'rates', :partial => 'users/rates', :label => :rate_label_rates}
|
||||
tabs << { :name => 'rates', :partial => 'users/rates', :label => :rate_label_rate_history}
|
||||
return tabs
|
||||
end
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ describe UsersHelper, 'user_settings' do
|
||||
end
|
||||
|
||||
it 'should use the i18n rates label' do
|
||||
@rate_tab[:label].should eql(:rate_label_rates)
|
||||
@rate_tab[:label].should eql(:rate_label_rate_history)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user