34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
.panel.panel-default.moderationbox
|
|
.panel-heading
|
|
%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
|
|
%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
|
|
%a.btn.btn-primary{href: content_url(report)}
|
|
View reported
|
|
= report.type.sub('Reports::', '')
|
|
.col-md-6.col-sm-8.col-xs-6.text-right
|
|
%span.mod-count{id: "mod-count-#{report.id}"}
|
|
= report.votes
|
|
.btn-group
|
|
%button.btn.btn-success.btn-sm{name: "mod-vote", disabled: current_user.report_x_voted?(report, true) ? 'disabled' : nil, data: { id: report.id, action: current_user.report_voted?(report) ? 'unvote' : 'vote', vote_type: 'upvote' }}
|
|
%i.fa.fa-thumbs-up
|
|
%button.btn.btn-danger.btn-sm{name: "mod-vote", disabled: current_user.report_x_voted?(report, false) ? 'disabled' : nil, data: { id: report.id, action: current_user.report_voted?(report) ? 'unvote' : 'vote', vote_type: 'downvote' }}
|
|
%i.fa.fa-thumbs-down
|
|
%button.btn.btn-primary.btn-sm
|
|
%i.fa.fa-comments
|
|
%span 0
|
|
%button.btn.btn-default.btn-sm
|
|
%i.fa.fa-trash-o
|
|
.panel-footer
|
|
= render 'moderation/discussion', report: report |