summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/my/blocks/_timelog.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb
index fbd83c382..f88de9549 100644
--- a/app/views/my/blocks/_timelog.html.erb
+++ b/app/views/my/blocks/_timelog.html.erb
@@ -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>