Adds styles for deleted users, improves previous

This commit is contained in:
Alberto Garcia Cabeza
2015-08-19 15:01:10 +02:00
parent 85ef4eb08d
commit 2eccd30eff
7 changed files with 63 additions and 7 deletions

View File

@@ -14,9 +14,28 @@
<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 %>
</span>
<% end %>
<% if @debate.author.verified_organization? %>
&nbsp;&bullet;&nbsp;
<span class="label round is-association">
<%= t("shared.organization") %>
</span>
<% end %>
<span class="bullet">&nbsp;&bullet;&nbsp;</span>
<%= l @debate.created_at.to_date %>
<span class="bullet">&nbsp;&bullet;&nbsp;</span>