diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-09-18 09:17:55 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-09-18 09:17:55 +0300 |
commit | 64e76a87aaddf76c3b3a487c5eb39e4490e4724f (patch) | |
tree | 89b2390333b62201133aef23cf503052192dfb08 /app/views | |
parent | 2aafd7cf4e5dc28c0d4692d4a0b35a714186615b (diff) | |
download | gitlab-ce-64e76a87aaddf76c3b3a487c5eb39e4490e4724f.tar.gz |
Notes votes: use icons instead of borders. Removed unnecessary padding
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/notes/_note.html.haml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/views/notes/_note.html.haml b/app/views/notes/_note.html.haml index 23145f128a8..5234e55dcd0 100644 --- a/app/views/notes/_note.html.haml +++ b/app/views/notes/_note.html.haml @@ -6,8 +6,16 @@ %cite.cgray = time_ago_in_words(note.updated_at) ago + - if note.upvote? + %span.label.label-success + %i.icon-thumbs-up + \+1 + - if note.downvote? + %span.label.label-error + %i.icon-thumbs-down + \-1 - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) - = link_to [@project, note], confirm: 'Are you sure?', method: :delete, remote: true, class: "cred delete-note btn very_small" do + = link_to [@project, note], confirm: 'Are you sure?', method: :delete, remote: true, class: "cred delete-note btn very_small" do %i.icon-trash Remove |