From 83385cbca8a26b43ecd865b261ec0621046aacc9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 16 Jul 2008 19:10:29 +0000 Subject: [PATCH] Adds timelog link to the issue context menu (#1645). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1672 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/context_menu.rhtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml index 69a5ec02a6..af56782e81 100644 --- a/app/views/issues/context_menu.rhtml +++ b/app/views/issues/context_menu.rhtml @@ -53,6 +53,10 @@ <% end -%> + <% if @can[:log_time] -%> +
  • <%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, + :class => 'icon-time' %>
  • + <% end %>
  • <%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, :class => 'icon-copy', :disabled => !@can[:copy] %>
  • <% else -%>