applies hidden users styles commented

This commit is contained in:
Juanjo Bazán
2015-08-19 16:04:34 +02:00
committed by Juanjo Bazán
parent 2eccd30eff
commit d2ac8b7f43
2 changed files with 26 additions and 26 deletions

View File

@@ -14,22 +14,22 @@
<div class="debate-info">
<%= avatar_image(@debate.author, size: 32, class: 'author-photo') %>
<!-- if user deleted -->
<i class="icon-deleted author-deleted"></i>
<span class="author">
<%= t("debates.show.author_deleted") %>
</span>
<!-- else -->
<span class="author">
<%= @debate.author.name %>
</span>
<!-- end -->
<% if @debate.author.official? %>
&nbsp;&bullet;&nbsp;
<span class="label round level-<%= @debate.author.official_level %>">
<%= @debate.author.official_position %>
<!-- if @debate.author.hidden? %>
<i class="icon-deleted author-deleted"></i>
<span class="author">
<%= t("debates.show.author_deleted") %>
</span>
<% end %>
else -->
<span class="author">
<%= @debate.author.name %>
</span>
<% if @debate.author.official? %>
&nbsp;&bullet;&nbsp;
<span class="label round level-<%= @debate.author.official_level %>">
<%= @debate.author.official_position %>
</span>
<% end %>
<!-- end -->
<% if @debate.author.verified_organization? %>
&nbsp;&bullet;&nbsp;
<span class="label round is-association">