<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2014 the OpenProject Foundation (OPF) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: Copyright (C) 2006-2013 Jean-Philippe Lang Copyright (C) 2010-2013 the ChiliProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See doc/COPYRIGHT.rdoc for more details. ++#%> <% content_for :action_menu_specific do %> <%= li_unless_nil(link_to_if_authorized(l(:button_update), { :controller => '/work_packages', :action => 'edit', :id => work_package.id }, :class => 'edit icon icon-edit', :accesskey => accesskey(:edit))) %> <%= li_unless_nil(watcher_link(work_package, User.current, { :class => 'watcher_link', :replace => User.current.allowed_to?(:view_work_package_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', :work_package_id => controller.work_package}, :class => 'icon-context icon-time') %> <%= li_unless_nil(link_to_if_authorized l(:button_duplicate), {:controller => '/work_packages', :action => 'new', :project_id => @project, :copy_from => work_package }, :class => 'icon-context icon-duplicate') %> <%= li_unless_nil(link_to_if_authorized l(:button_copy), {:controller => '/work_packages/moves', :action => 'new', :work_package_id => controller.work_package, :copy => ''}, :class => 'icon-context icon-copy') %> <%= li_unless_nil(link_to_if_authorized l(:button_move), {:controller => '/work_packages/moves', :action => 'new', :work_package_id => controller.work_package}, :class => 'icon-context icon-move') %> <%= li_unless_nil(link_to_if_authorized l(:button_delete), { :controller => '/work_packages/bulk', :action => 'destroy', :ids => [work_package.id] }, :confirm => (controller.work_package.leaf? ? l(:text_are_you_sure) : l(:text_are_you_sure_with_children)), :method => :delete , :class => 'icon-context icon-delete' ) %> <%= call_hook(:view_work_package_show_action_menu, :work_package => controller.work_package) %> <% end %>