Commit 5ca31aa252d67372d9a90cceb61f16721dca3841
1 parent
1271b4ce
Exists in
master
and in
4 other branches
Make issue buttons look more consistent with MRs
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/views/issues/show.html.haml
| ... | ... | @@ -8,11 +8,11 @@ |
| 8 | 8 | %span.right |
| 9 | 9 | - if can?(current_user, :admin_project, @project) || @issue.author == current_user |
| 10 | 10 | - if @issue.closed |
| 11 | - = link_to 'Reopen', project_issue_path(@project, @issue, issue: {closed: false }, status_only: true), method: :put, class: "btn small" | |
| 11 | + = link_to 'Reopen', project_issue_path(@project, @issue, issue: {closed: false }, status_only: true), method: :put, class: "btn grouped success" | |
| 12 | 12 | - else |
| 13 | - = link_to 'Close', project_issue_path(@project, @issue, issue: {closed: true }, status_only: true), method: :put, class: "btn small", title: "Close Issue" | |
| 13 | + = link_to 'Close', project_issue_path(@project, @issue, issue: {closed: true }, status_only: true), method: :put, class: "btn grouped danger", title: "Close Issue" | |
| 14 | 14 | - if can?(current_user, :admin_project, @project) || @issue.author == current_user |
| 15 | - = link_to edit_project_issue_path(@project, @issue), class: "btn small" do | |
| 15 | + = link_to edit_project_issue_path(@project, @issue), class: "btn grouped" do | |
| 16 | 16 | %i.icon-edit |
| 17 | 17 | Edit |
| 18 | 18 | ... | ... |