Renamed the Rates tab to Rate History to match the comp. #1915

This commit is contained in:
Eric Davis
2009-01-16 15:17:34 -08:00
parent bba40af42a
commit 931ecae4d1
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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) %>
+2
View File
@@ -1,3 +1,5 @@
# English strings go here
rate_label_rates: Rates
rate_label_rate: Rate
rate_label_rate_history: Rate History
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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