##// END OF EJS Templates
Adds a link to /time_entries/new from My Page Spent Time block (#17955)....
Jean-Philippe Lang -
r13059:efdf2584b68b
parent child
Show More
@@ -7,6 +7,12 entries = timelog_items
7 entries_by_day = entries.group_by(&:spent_on)
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 <div class="total-hours">
16 <div class="total-hours">
11 <p><%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
17 <p><%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
12 </div>
18 </div>
General Comments 0
You need to be logged in to leave comments. Login now