Adds styles for deleted users, improves previous
This commit is contained in:
@@ -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? %>
|
||||
•
|
||||
<span class="label round level-<%= @debate.author.official_level %>">
|
||||
<%= @debate.author.official_position %>
|
||||
</span>
|
||||
<% end %>
|
||||
<% if @debate.author.verified_organization? %>
|
||||
•
|
||||
<span class="label round is-association">
|
||||
<%= t("shared.organization") %>
|
||||
</span>
|
||||
<% end %>
|
||||
<span class="bullet"> • </span>
|
||||
<%= l @debate.created_at.to_date %>
|
||||
<span class="bullet"> • </span>
|
||||
|
||||
Reference in New Issue
Block a user