Commit 573942263adf806b6eb61d04ba6e748334a4a519
1 parent
c9b1df12
Exists in
master
and in
4 other branches
Fix issue edit button showup
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
app/views/issues/show.html.haml
| @@ -12,10 +12,9 @@ | @@ -12,10 +12,9 @@ | ||
| 12 | - else | 12 | - else |
| 13 | = link_to 'Close', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue" | 13 | = link_to 'Close', project_issue_path(@project, @issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn grouped close_issue", title: "Close Issue" |
| 14 | 14 | ||
| 15 | - - if can?(current_user, :admin_issue, @issue) | ||
| 16 | = link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do | 15 | = link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do |
| 17 | %i.icon-edit | 16 | %i.icon-edit |
| 18 | - Edit | 17 | + Edit |
| 19 | 18 | ||
| 20 | .pull-right | 19 | .pull-right |
| 21 | .span3#votes= render 'votes/votes_block', votable: @issue | 20 | .span3#votes= render 'votes/votes_block', votable: @issue |