]> source.dussan.org Git - redmine.git/commitdiff
Adds timelog link to the issue context menu (#1645).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 16 Jul 2008 19:10:29 +0000 (19:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 16 Jul 2008 19:10:29 +0000 (19:10 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1672 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/context_menu.rhtml

index 69a5ec02a655335afcc3e61e3fdb43c7cb75bc19..af56782e818e18504606618959c349bd3c33ef69 100644 (file)
                <% end -%>
                </ul>
        </li>
+       <% if @can[:log_time] -%>
+       <li><%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue},
+               :class => 'icon-time' %></li>
+       <% end %>
        <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue},
                :class => 'icon-copy', :disabled => !@can[:copy] %></li>
 <% else -%>