mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Adds a link to /time_entries/new from My Page Spent Time block (#17955).
git-svn-id: http://svn.redmine.org/redmine/trunk@13423 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
15d5c331eb
commit
efdf2584b6
@ -7,6 +7,12 @@ entries = timelog_items
|
|||||||
entries_by_day = entries.group_by(&:spent_on)
|
entries_by_day = entries.group_by(&:spent_on)
|
||||||
%>
|
%>
|
||||||
|
|
||||||
|
<% if User.current.allowed_to?(:log_time, nil, :global => true) %>
|
||||||
|
<div class="contextual">
|
||||||
|
<%= link_to l(:button_log_time), new_time_entry_path, :class => "icon icon-add" %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div class="total-hours">
|
<div class="total-hours">
|
||||||
<p><%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
|
<p><%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user