From bba40af42a6f20bace1eeec6ed0144d262692df3 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Fri, 16 Jan 2009 15:14:05 -0800 Subject: [PATCH] Cleaned up the rate partial UI to better match the comps. #1915 --- app/views/users/_rates.html.erb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/views/users/_rates.html.erb b/app/views/users/_rates.html.erb index 118e0cd..70a666c 100644 --- a/app/views/users/_rates.html.erb +++ b/app/views/users/_rates.html.erb @@ -3,12 +3,12 @@ <%# Can't expect everyone to upgrade at the moment %> <% @rates = Rate.history_for_user(@user) %> - +
- + - - + + <% @rates.each do |rate| %> @@ -19,8 +19,12 @@
<%= l(:label_date) %><%= l(:label_date) %> <%= l(:label_project) %><%= l(:rate_label_rate) %><%= l(:rate_label_rate) %>
<%= 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' %> + <%= link_to image_tag('edit.png'), + {:action => 'not_implemented', :id => @user, :rate_id => rate }, + {:method => :post } %> + <%= link_to image_tag('delete.png'), + {:action => 'not_implemented', :id => @user, :rate_id => rate }, + {:method => :post, :confirm => l(:text_are_you_sure) } %>