socialforge/app/views/issues/_action_menu.html.erb

19 lines
1010 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<div class="contextual">
<!--added by huang-->
<% if (@issue.author == User.current) || (User.current.admin?) %>
<!--end-->
2013-08-01 10:33:49 +08:00
<%= link_to l(:button_update), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %>
<% else %>
<%= link_to l(:label_user_newfeedback), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %>
<% end %>
2013-08-01 10:33:49 +08:00
<%= watcher_link(@issue, User.current) %>
<%= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'icon icon-copy' if User.current.allowed_to?(:add_issues, @project) %>
<%= link_to l(:button_delete), issue_path(@issue.id), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %>
2013-08-01 10:33:49 +08:00
</div>