From 3cccbf8a4378963caf5b7bd49bf971b7ca87bd87 Mon Sep 17 00:00:00 2001 From: rmp Date: Tue, 8 Jan 2013 23:42:09 +0100 Subject: [PATCH] Possibility to open a new issue form after viewing another one. While looking at an issue you no longer need to go back to the issue list for creating the next one. --- app/views/issues/show.html.haml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/issues/show.html.haml b/app/views/issues/show.html.haml index 1d4d6a13..7996c317 100644 --- a/app/views/issues/show.html.haml +++ b/app/views/issues/show.html.haml @@ -6,6 +6,10 @@ = @issue.created_at.stamp("Aug 21, 2011") %span.right + - if can? current_user, :write_issue, @project + = link_to new_project_issue_path(@project, issue: { assignee_id: params[:assignee_id], milestone_id: params[:milestone_id]}), class: "btn grouped" do + %i.icon-plus + New Issue - if can?(current_user, :admin_project, @project) || @issue.author == current_user - if @issue.closed = link_to 'Reopen', project_issue_path(@project, @issue, issue: {closed: false }, status_only: true), method: :put, class: "btn grouped reopen_issue"