diaspora/app/views/report/index.html.haml
2015-09-07 12:41:36 +02:00

32 lines
1.1 KiB
Text

- content_for :head do
= stylesheet_link_tag :admin
.container
.row
.col-md-3
- if current_user.admin?
= render partial: "admins/admin_bar"
.col-md-9
%h1
= t('report.title')
#reports
- @reports.each do |r|
- username = User.find_by_id(r.user_id).username
.content
%span.text
= report_content(r.item_id, r.item_type)
%span
= raw t('report.reported_label', person: link_to(username, user_profile_path(username)))
%span
= t('report.reason_label', text: r.text)
.options.text-right
%span
= button_to t('report.review_link'), report_path(r.id, :type => r.item_type),
:class => "btn btn-info btn-small",
method: :put
%span
= button_to t('report.delete_link'), report_path(r.id, :type => r.item_type),
:data => { :confirm => t('report.confirm_deletion') },
:class => "btn btn-danger btn-small",
method: :delete
.clear