Notes votes: use icons instead of borders. Removed unnecessary padding
This commit is contained in:
parent
2aafd7cf4e
commit
64e76a87aa
3 changed files with 22 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue