summaryrefslogtreecommitdiff
path: root/app/views/issues
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 17:37:34 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 17:37:34 +0300
commitd61a21d2d77808977fc7d1ea96a5f123719b8b7d (patch)
tree4edef9268bdd442c749776f3beb7f75ba04f987e /app/views/issues
parentf64717f13112af305ec4ad154decb3f1260aff7c (diff)
downloadgitlab-ce-d61a21d2d77808977fc7d1ea96a5f123719b8b7d.tar.gz
new issue link from issue show page
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/show.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/issues/show.html.haml b/app/views/issues/show.html.haml
index 70f94e52942..67fe89a761b 100644
--- a/app/views/issues/show.html.haml
+++ b/app/views/issues/show.html.haml
@@ -6,6 +6,9 @@
= @issue.created_at.stamp("Aug 21, 2011")
%span.pull-right
+ = link_to new_project_issue_path(@project), class: "btn grouped", title: "New Issue", id: "new_issue_link" do
+ %i.icon-plus
+ New Issue
- if can?(current_user, :modify_issue, @issue)
- if @issue.closed?
= link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn grouped reopen_issue"