diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb index fbd83c3..f88de95 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) %> +
<%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %>