Commit 21fe83ae authored by jplang's avatar jplang

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

git-svn-id: https://svn.redmine.org/redmine/trunk@13423 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 74f737d9
......@@ -7,6 +7,12 @@ entries = timelog_items
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">
<p><%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment