<%= rate_sort_header_tag("date_in_effect", :caption => l(:label_date), :default_order => 'desc', :style => "width: 15%", :method => :get, :update => "rate_history", :user_id => @user.id) %> <%= rate_sort_header_tag("project_id", :caption => l(:label_project), :default_order => 'asc', :method => :get, :update => "rate_history", :user_id => @user.id) %> <% @rates.each do |rate| %> <% end; reset_cycle %>
<%= l(:rate_label_rate) %>
<%= h format_date(rate.date_in_effect) %> <% if rate.project %> <%= link_to(h(rate.project), :controller => 'projects', :action => 'show', :id => rate.project) %> <% else %> <%= l(:rate_label_default) %> <% end %> <%= h rate.amount %> <% if rate.unlocked? %> <%= link_to image_tag('edit.png'), edit_rate_path(rate, :back_url => @back_url) %> <%= link_to image_tag('delete.png'), rate_path(rate, :back_url => @back_url), :method => :delete, :confirm => l(:text_are_you_sure) %> <% else %> <%= image_tag('locked.png') %> <% end %>