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:
parent
2e7e6e6ee1
commit
3cccbf8a43
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue