diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-29 22:29:21 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-29 22:29:21 +0200 |
commit | fb617c61b95aef4615346a5e554db469384d9b6c (patch) | |
tree | e717a475075f30e23beb4d8aab35b1df77356292 /app/views/issues | |
parent | 033aa1a885801c299a20ab39af6f897bb53dc3d4 (diff) | |
download | gitlab-ce-fb617c61b95aef4615346a5e554db469384d9b6c.tar.gz |
refactor buttons pt2
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/_show.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/issues/_show.html.haml b/app/views/issues/_show.html.haml index dcef901c15f..9f543ef97d8 100644 --- a/app/views/issues/_show.html.haml +++ b/app/views/issues/_show.html.haml @@ -4,15 +4,15 @@ = check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue) .right - if issue.notes.any? - %span.btn.small.disabled.grouped + %span.btn.btn-small.disabled.grouped %i.icon-comment = issue.notes.count - if can? current_user, :modify_issue, issue - if issue.closed - = link_to 'Reopen', project_issue_path(issue.project, issue, issue: {closed: false }, status_only: true), method: :put, class: "btn small grouped reopen_issue", remote: true + = link_to 'Reopen', project_issue_path(issue.project, issue, issue: {closed: false }, status_only: true), method: :put, class: "btn btn-small grouped reopen_issue", remote: true - else - = link_to 'Close', project_issue_path(issue.project, issue, issue: {closed: true }, status_only: true), method: :put, class: "btn small grouped close_issue", remote: true - = link_to edit_project_issue_path(issue.project, issue), class: "btn small edit-issue-link grouped" do + = link_to 'Close', project_issue_path(issue.project, issue, issue: {closed: true }, status_only: true), method: :put, class: "btn btn-small grouped close_issue", remote: true + = link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link grouped" do %i.icon-edit Edit |