applies hidden users styles commented
This commit is contained in:
committed by
Juanjo Bazán
parent
2eccd30eff
commit
d2ac8b7f43
@@ -6,25 +6,24 @@
|
||||
<% else %>
|
||||
|
||||
<%= avatar_image(comment.user, size: 32, class: 'left') %>
|
||||
<!-- if user deleted -->
|
||||
<!-- if comment.user.hidden?
|
||||
<i class="icon-deleted user-deleted"></i>
|
||||
<!-- end -->
|
||||
end -->
|
||||
|
||||
<div class="comment-body">
|
||||
<div class="comment-info">
|
||||
|
||||
<!-- if user deleted -->
|
||||
<!-- if comment.user.hidden?
|
||||
<span class="user-name"><%= t("debates.comment.user_deleted") %></span>
|
||||
<!-- else -->
|
||||
else -->
|
||||
<span class="user-name"><%= comment.user.name %></span>
|
||||
<!-- end -->
|
||||
• <%= time_ago_in_words(comment.created_at) %>
|
||||
<% if comment.user.official? %>
|
||||
•
|
||||
<span class="label round level-<%= comment.user.official_level %>">
|
||||
<%= comment.user.official_position %>
|
||||
</span>
|
||||
<% end %>
|
||||
<!-- end -->
|
||||
<% if comment.user.verified_organization? %>
|
||||
•
|
||||
<span class="label round is-association">
|
||||
@@ -37,6 +36,7 @@
|
||||
<%= t("debates.comment.author") %>
|
||||
</span>
|
||||
<% end %>
|
||||
• <%= time_ago_in_words(comment.created_at) %>
|
||||
</div>
|
||||
|
||||
<% if comment.user.official? %>
|
||||
|
||||
@@ -14,22 +14,22 @@
|
||||
|
||||
<div class="debate-info">
|
||||
<%= avatar_image(@debate.author, size: 32, class: 'author-photo') %>
|
||||
<!-- if user deleted -->
|
||||
<!-- if @debate.author.hidden? %>
|
||||
<i class="icon-deleted author-deleted"></i>
|
||||
<span class="author">
|
||||
<%= t("debates.show.author_deleted") %>
|
||||
</span>
|
||||
<!-- else -->
|
||||
else -->
|
||||
<span class="author">
|
||||
<%= @debate.author.name %>
|
||||
</span>
|
||||
<!-- end -->
|
||||
<% if @debate.author.official? %>
|
||||
•
|
||||
<span class="label round level-<%= @debate.author.official_level %>">
|
||||
<%= @debate.author.official_position %>
|
||||
</span>
|
||||
<% end %>
|
||||
<!-- end -->
|
||||
<% if @debate.author.verified_organization? %>
|
||||
•
|
||||
<span class="label round is-association">
|
||||
|
||||
Reference in New Issue
Block a user