Adds styles for comment as moderator
This commit is contained in:
committed by
Juanjo Bazán
parent
f1b625aadd
commit
cfd25042b6
@@ -13,14 +13,26 @@
|
||||
<% if comment.user.hidden? %>
|
||||
<i class="icon-deleted user-deleted"></i>
|
||||
<% end %>
|
||||
|
||||
<!--
|
||||
<% if comment.user.moderator? %> <!-- AND has activated CHECKBOX comment as moderator ->
|
||||
<%= image_tag('moderator_avatar.png', size: 32, class: "moderator-avatar left") %>
|
||||
<% else %>
|
||||
<%= avatar_image(comment.user, size: 32, class: "left") %>
|
||||
<% end %>
|
||||
-->
|
||||
<div class="comment-body">
|
||||
<div class="comment-info">
|
||||
|
||||
<% if comment.user.hidden? %>
|
||||
<span class="user-name"><%= t("debates.comment.user_deleted") %></span>
|
||||
<% else %>
|
||||
<span class="user-name"><%= comment.user.name %></span>
|
||||
|
||||
<% if comment.user.moderator? %> <!-- AND activate moderator CHECKBOX -->
|
||||
<span class="user-name"><%= t("debates.comment.moderator") %></span>
|
||||
<% else %>
|
||||
<span class="user-name"><%= comment.user.name %></span>
|
||||
<% end %>
|
||||
|
||||
<% if comment.user.official? %>
|
||||
•
|
||||
<span class="label round level-<%= comment.user.official_level %>">
|
||||
@@ -52,6 +64,8 @@
|
||||
<p class="comment-user level-<%= comment.user.official_level %> is-author"><%= comment.body %></p>
|
||||
<% elsif comment.user.official? %>
|
||||
<p class="comment-user level-<%= comment.user.official_level %>"><%= comment.body %></p>
|
||||
<% elsif comment.user.moderator? %> <!-- AND has activated CHECKBOX comment as moderator & all badges are hidden (100% anonymous) -->
|
||||
<p class="comment-user is-moderator"><%= comment.body %></p>
|
||||
<% elsif comment.user_id == @debate.author_id %>
|
||||
<p class="comment-user is-author"><%= comment.body %></p>
|
||||
<% else %>
|
||||
@@ -83,6 +97,5 @@
|
||||
<div class="comment-children">
|
||||
<%= render comment.children.with_hidden.reorder('id DESC, lft') %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user