Project

General

Profile

« Previous | Next » 

Revision 13423

Adds a link to /time_entries/new from My Page Spent Time block (#17955).

View differences:

trunk/app/views/my/blocks/_timelog.html.erb
7 7
entries_by_day = entries.group_by(&:spent_on)
8 8
%>
9 9

  
10
<% if User.current.allowed_to?(:log_time, nil, :global => true) %>
11
<div class="contextual">
12
  <%= link_to l(:button_log_time), new_time_entry_path, :class => "icon icon-add" %>
13
</div>
14
<% end %>
15

  
10 16
<div class="total-hours">
11 17
<p><%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
12 18
</div>

Also available in: Unified diff