From f403a0a2f8d1c14fef0784fc7f1fa3e612b65746 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Thu, 25 Dec 2014 23:47:11 +0100 Subject: [PATCH] added tabs, moderation box view and comment display --- app/views/moderation/_discussion.html.haml | 9 ++++++++ app/views/moderation/_moderationbox.html.haml | 23 +++++++++++++++++++ app/views/moderation/index.html.haml | 3 ++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 app/views/moderation/_discussion.html.haml create mode 100644 app/views/moderation/_moderationbox.html.haml diff --git a/app/views/moderation/_discussion.html.haml b/app/views/moderation/_discussion.html.haml new file mode 100644 index 00000000..9c1278ce --- /dev/null +++ b/app/views/moderation/_discussion.html.haml @@ -0,0 +1,9 @@ +There are no comments yet +%ul.comments + %li + %img.img-rounded.answerbox--img-small + %b username + comment +.form-group.has-feedback + %input.form-control.comments--box{type: :text, placeholder: 'Comment...'} + %span.text-muted.form-control-feedback.comments--count 160 \ No newline at end of file diff --git a/app/views/moderation/_moderationbox.html.haml b/app/views/moderation/_moderationbox.html.haml new file mode 100644 index 00000000..bca8835d --- /dev/null +++ b/app/views/moderation/_moderationbox.html.haml @@ -0,0 +1,23 @@ +.panel.panel-default.moderationbox + .panel-heading + %img.img-rounded.answerbox--img-small + username reported some minutes ago + .panel-body + %p really, really bad content + .row + .col-md-6.col-sm-4.col-xs-6.text-left + %button.btn.btn-primary + View reported + contenttype + .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 + .panel-footer + = render 'moderation/discussion' \ No newline at end of file diff --git a/app/views/moderation/index.html.haml b/app/views/moderation/index.html.haml index 81677fa5..cf2973e5 100644 --- a/app/views/moderation/index.html.haml +++ b/app/views/moderation/index.html.haml @@ -1,4 +1,5 @@ .container.j2-page .row = render 'moderation/moderation_tabs' - .col-md-9.col-sm-9.col-xs-12 \ No newline at end of file + .col-md-9.col-sm-9.col-xs-12 + = render 'moderation/moderationbox' \ No newline at end of file