shows author avatar in prop/deb only if not hidden
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<%= avatar_image(resource.author, seed: resource.author_id, size: 32, class: 'author-photo') %>
|
||||
|
||||
<% if resource.author.hidden? || resource.author.erased? %>
|
||||
<i class="icon-deleted author-deleted"></i>
|
||||
<span class="author">
|
||||
<%= t("shared.author_info.author_deleted") %>
|
||||
</span>
|
||||
<% else %>
|
||||
<%= avatar_image(resource.author, seed: resource.author_id, size: 32, class: 'author-photo') %>
|
||||
<span class="author">
|
||||
<%= link_to resource.author.name, user_path(resource.author) %>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user