kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
3.2 KiB
46 lines
3.2 KiB
<%#-- copyright
|
|
OpenProject is a project management system.
|
|
|
|
Copyright (C) 2012-2013 the OpenProject Team
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 3.
|
|
|
|
See doc/COPYRIGHT.rdoc for more details.
|
|
|
|
++#%>
|
|
|
|
<% content_for :action_menu_main do %>
|
|
<% if controller.work_package.is_a? Issue %>
|
|
<%= li_unless_nil(link_to_if_authorized(l(:button_update), { :controller => '/issues',
|
|
:action => 'edit',
|
|
:id => controller.work_package.id },
|
|
:class => 'edit icon icon-edit',
|
|
:accesskey => accesskey(:edit))) %>
|
|
<% elsif controller.work_package.is_a? PlanningElement %>
|
|
<%= li_unless_nil(link_to_if_authorized(l(:button_update), { :controller => '/planning_elements',
|
|
:action => 'edit',
|
|
:project_id => controller.work_package.project,
|
|
:id => controller.work_package },
|
|
:class => 'edit icon icon-edit',
|
|
:accesskey => accesskey(:edit))) %>
|
|
<% end %>
|
|
|
|
<%= li_unless_nil(watcher_link(work_package,
|
|
User.current,
|
|
{ :class => 'watcher_link',
|
|
:replace => User.current.allowed_to?(:view_issue_watchers, @project) ? ['#watchers', '.watcher_link'] : ['.watcher_link'] })) %>
|
|
<% end %>
|
|
<% content_for :action_menu_more do %>
|
|
<%= li_unless_nil(link_to_if_authorized l(:button_log_time), {:controller => '/timelog', :action => 'new', :issue_id => work_package}, :class => 'icon icon-time-add') %>
|
|
<%= li_unless_nil(link_to_if_authorized l(:button_duplicate), {:controller => '/issues', :action => 'new', :project_id => @project, :copy_from => work_package }, :class => 'icon icon-duplicate') %>
|
|
<%= li_unless_nil(link_to_if_authorized l(:button_copy), {:controller => '/issue_moves', :action => 'new', :id => work_package, :copy_options => {:copy => 't'}}, :class => 'icon icon-copy') %>
|
|
<%= li_unless_nil(link_to_if_authorized l(:button_move), {:controller => '/issue_moves', :action => 'new', :id => work_package}, :class => 'icon icon-move') %>
|
|
<%= li_unless_nil(link_to_if_authorized l(:button_delete), { :controller => '/issues',
|
|
:action => 'destroy',
|
|
:id => work_package },
|
|
:confirm => (work_package.leaf? ? l(:text_are_you_sure) : l(:text_are_you_sure_with_children)),
|
|
:remote => true,
|
|
:method => :delete ,
|
|
:class => 'icon icon-del' ) %>
|
|
<% end %>
|
|
|