Added button for report/delete actions

This commit is contained in:
Andreas N 2014-12-27 02:26:51 +01:00
parent 92af469aa4
commit bdd3cd5afc
1 changed files with 14 additions and 3 deletions

View File

@ -16,6 +16,17 @@
%button.btn.btn-primary.btn-sm{type: :button, name: 'ab-comments', data: { a_id: a.id, state: :hidden }}
%i.fa.fa-comments
%span{id: "ab-comment-count-#{a.id}"}= a.comment_count
- if user_signed_in?
.btn-group
%button.btn.btn-default.btn-sm.dropdown-toggle{data: { toggle: :dropdown }, aria: { expanded: :false }}
%span.caret
%ul.dropdown-menu{role: :menu}
- if privileged? a.user
%button.btn.btn-danger.btn-sm{name: 'ab-destroy', data: { a_id: a.id }}
%a{href: '#', name: 'ab-destroy', data: { a_id: a.id }}
%li.text-danger
%i.fa.fa-trash-o
Delete
%a{href: '#', name: 'ab-report', data: { a_id: a.id }}
%li
%i.fa.fa-exclamation-triangle
Report