mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 04:02:12 +02:00
added some view logic
This commit is contained in:
parent
84806a8001
commit
e75284dba0
3 changed files with 15 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
There are no comments yet
|
There are no comments yet
|
||||||
%ul.comments
|
%ul.comments
|
||||||
- a.comments.all.each do |comment|
|
- report.moderation_comments.all.each do |comment|
|
||||||
%li{data: { comment_id: comment.id }}
|
%li{data: { comment_id: comment.id }}
|
||||||
.media.comments--media
|
.media.comments--media
|
||||||
.pull-left
|
.pull-left
|
||||||
|
|
|
@ -1,9 +1,17 @@
|
||||||
.panel.panel-default.moderationbox
|
.panel.panel-default.moderationbox
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%img.img-rounded.answerbox--img-small
|
%img.img-rounded.answerbox--img{src: gravatar_url(report.user)}
|
||||||
username reported some minutes ago
|
= user_screen_name report.user
|
||||||
|
reported a
|
||||||
|
= report.type.sub('Reports::', '')
|
||||||
|
= time_ago_in_words(report.created_at)
|
||||||
|
ago
|
||||||
.panel-body
|
.panel-body
|
||||||
%p really, really bad content
|
%p
|
||||||
|
- if report.type == 'Reports::User'
|
||||||
|
= user_screen_name report.target
|
||||||
|
- else
|
||||||
|
= report.target.content
|
||||||
.row
|
.row
|
||||||
.col-md-6.col-sm-4.col-xs-6.text-left
|
.col-md-6.col-sm-4.col-xs-6.text-left
|
||||||
%button.btn.btn-primary
|
%button.btn.btn-primary
|
||||||
|
@ -20,4 +28,4 @@
|
||||||
%i.fa.fa-comments
|
%i.fa.fa-comments
|
||||||
%span 0
|
%span 0
|
||||||
.panel-footer
|
.panel-footer
|
||||||
= render 'moderation/discussion'
|
= render 'moderation/discussion', report: report
|
|
@ -2,4 +2,5 @@
|
||||||
.row
|
.row
|
||||||
= render 'moderation/moderation_tabs'
|
= render 'moderation/moderation_tabs'
|
||||||
.col-md-9.col-sm-9.col-xs-12
|
.col-md-9.col-sm-9.col-xs-12
|
||||||
= render 'moderation/moderationbox'
|
- Report.all.reverse_order.each do |r|
|
||||||
|
= render 'moderation/moderationbox', report: r
|
Loading…
Reference in a new issue