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.
This commit is contained in:
rmp 2013-01-08 23:42:09 +01:00
parent 2e7e6e6ee1
commit 3cccbf8a43

View file

@ -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"