diaspora/app/views/report/index.html.haml
Lukas Matt 2e36f8d375 Diaspora review part 1
* join the conditions of the inner ifs
* add a uniqueness constraint to the model
* differentiate between author is a local or a remote user
* simplify controller/mailer functions
2014-05-15 07:23:43 -04:00

21 lines
667 B
Text

.span-24
= render :partial => 'admins/admin_bar'
.span-24.last
%h1
= t('report.title')
%div#reports
- @reports.each do |r|
%div.content
%span
= report_content(r.post_id, r.post_type)
%span
= raw t('report.reported_label', person: link_to(r.user_id, user_profile_path(r.user_id)))
%span
= t('report.reason_label', text: r.text)
%div.options
%span
= link_to t('report.review_link'), report_path(r.id, :type => r.post_type), method: :put
%span
= link_to t('report.delete_link'), report_path(r.id, :type => r.post_type), method: :delete
%div.clear