diff --git a/app/views/users/_rates.html.erb b/app/views/users/_rates.html.erb index 98293d4..047f8fb 100644 --- a/app/views/users/_rates.html.erb +++ b/app/views/users/_rates.html.erb @@ -1 +1,28 @@ -

Hello Rates

\ No newline at end of file +

Rate History

+<%# 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.find(:all, :conditions => { :user_id => @user.id }) %> + + + + + + + + + + <% @rates.each do |rate| %> + + + + + + + +<% end; reset_cycle %> +
<%= l(:label_date) %><%= l(:label_project) %><%= l(:rate_label_rate) %>
<%= h format_date(rate.date_in_effect) %> + <%= link_to(h(rate.project), :controller => 'projects', :action => 'show', :id => rate.project) %> + <%= h rate.amount %> + <%= link_to l(:button_edit), {:action => 'not_implemented', :id => @user, :rate_id => rate }, :method => :post, :class => 'icon icon-edit' %> + <%= link_to l(:button_delete), {:action => 'not_implemented', :id => @user, :rate_id => rate }, :method => :post, :class => 'icon icon-del' %> +
diff --git a/lang/en.yml b/lang/en.yml index 0852e39..49ec4b5 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,2 +1,3 @@ # English strings go here rate_label_rates: Rates +rate_label_rate: Rate