<% @rates.each_pair do |project, rates| %> <% @project = project %>
<%= link_to_if_authorized l(:button_update), {:controller => 'hourly_rates', :action => 'edit', :project_id => project, :id => @user}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>

<%=h project.name %>

<% if rates.empty? %>

<%= l(:label_no_data) %>

<% else %> <% current_rate = @user.current_rate(project) %> <%- rates.each do |rate| -%> <%- end -%>
<%= l(:caption_valid_from) %> <%= l(:caption_rate) %> <%= l(:caption_current_rate) %>
<%= rate.valid_from %> <%= number_to_currency(rate.rate) %> <%= rate == current_rate ? image_tag('true.png') : "" %>
<% end %> <% end %>