Commit d61a21d2d77808977fc7d1ea96a5f123719b8b7d

Authored by Dmitriy Zaporozhets
1 parent f64717f1

new issue link from issue show page

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
app/views/issues/show.html.haml
@@ -6,6 +6,9 @@ @@ -6,6 +6,9 @@
6 = @issue.created_at.stamp("Aug 21, 2011") 6 = @issue.created_at.stamp("Aug 21, 2011")
7 7
8 %span.pull-right 8 %span.pull-right
  9 + = link_to new_project_issue_path(@project), class: "btn grouped", title: "New Issue", id: "new_issue_link" do
  10 + %i.icon-plus
  11 + New Issue
9 - if can?(current_user, :modify_issue, @issue) 12 - if can?(current_user, :modify_issue, @issue)
10 - if @issue.closed? 13 - if @issue.closed?
11 = link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn grouped reopen_issue" 14 = link_to 'Reopen', project_issue_path(@project, @issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn grouped reopen_issue"