Retrospring/app/views/moderation/_moderationbox.html.haml

33 lines
1022 B
Plaintext
Raw Normal View History

.panel.panel-default.moderationbox
.panel-heading
2014-12-27 07:14:57 -08:00
%img.img-rounded.answerbox--img{src: gravatar_url(report.user)}
= user_screen_name report.user
reported a
= report.type.sub('Reports::', '')
= time_ago_in_words(report.created_at)
ago
.panel-body
2014-12-27 07:14:57 -08:00
%p
- if report.type == 'Reports::User'
= user_screen_name report.target
- else
= report.target.content
.row
.col-md-6.col-sm-4.col-xs-6.text-left
2014-12-28 11:05:30 -08:00
%a.btn.btn-primary{href: content_url(report)}
View reported
2014-12-28 11:05:30 -08:00
= report.type.sub('Reports::', '')
.col-md-6.col-sm-8.col-xs-6.text-right
%button.btn.btn-success.btn-sm
%i.fa.fa-thumbs-up
%span 0
%button.btn.btn-danger.btn-sm
%i.fa.fa-thumbs-down
%span 0
%button.btn.btn-primary.btn-sm
%i.fa.fa-comments
%span 0
2014-12-28 11:13:45 -08:00
%button.btn.btn-default.btn-sm
%i.fa.fa-trash-o
.panel-footer
2014-12-27 07:14:57 -08:00
= render 'moderation/discussion', report: report