From 1e66dd90437aee1537007396ee62469b09ff404a Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sun, 13 Mar 2011 16:33:56 -0700 Subject: [PATCH] [#276] Add a link to log time to Project > Overview --- app/views/projects/show.rhtml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml index 414358ac..bfd27b4a 100644 --- a/app/views/projects/show.rhtml +++ b/app/views/projects/show.rhtml @@ -67,8 +67,13 @@ <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>

<%= l(:label_spent_time) %>

<%= l_hours(@total_hours) %>

-

<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | - <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %>

+

+ <%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | + <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %> + <% if authorize_for('timelog', 'new') %> + | <%= link_to l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => @project} %> + <% end %> +

<% end %> <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %> <% end %>