Revision 13423
Added by Jean-Philippe Lang over 10 years ago
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
Adds a link to /time_entries/new from My Page Spent Time block (#17955).