% if resource.author.hidden? || resource.author.erased? %>
<%= t("shared.author_info.author_deleted") %>
<% else %>
<%= render Shared::AvatarComponent.new(resource.author, size: 32, class: "author-photo") %>
<%= link_to resource.author.name, user_path(resource.author) %>
<% if resource.respond_to?(:association_name) && resource.association_name.present? %>
<%= "(#{resource.association_name})" %>
<% end %>
<% if resource.author.display_official_position_badge? %>
•
<%= resource.author.official_position %>
<% end %>
<% end %>
<% if resource.author.verified_organization? %>
•
<%= t("shared.collective") %>
<% end %>