2013-08-01 10:33:49 +08:00
|
|
|
<div class="contextual">
|
2013-08-14 21:47:46 +08:00
|
|
|
<!--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? %>
|
2013-08-14 21:47:46 +08:00
|
|
|
|
|
|
|
<% 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) %>
|
2014-07-04 16:00:18 +08:00
|
|
|
<%= 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>
|