<%= t ".link" %>: <%= link_to resource_locator(paragraph).url, resource_locator(paragraph).path %>
<%= t ".authors" %>:
<% coauthor_presenters_for(paragraph).each do |presented_author| %>
-
<%= link_to_if(
presented_author.profile_path.present?,
presented_author.name,
presented_author.profile_path,
target: :blank
) %>
<% if presented_author.can_be_contacted? && presented_author.nickname != present(current_user).nickname %>
<%= icon_link_to "envelope-closed", current_or_new_conversation_path_with(presented_author), t("decidim.contact"), class:"action-icon--new" %>
<% end %>
<% end %>
<%= t ".body" %>: <%= simple_format(present(paragraph).body(strip_tags: true)) %>
<%= t ".created_at" %>: <%= l paragraph.created_at, format: :decidim_short %>
<%= t ".votes_count" %>: <%= paragraph.paragraph_votes_count %>
<%= t ".votes_ranking" %>: <%= i18n_votes_ranking_for(paragraph) %>
<%= t ".endorsements_count" %>: <%= paragraph.endorsements_count %>
<%= t ".endorsements_ranking" %>: <%= i18n_endorsements_ranking_for(paragraph) %>
<%= t ".amendments_count" %>: <%= paragraph.amendments.count %>
<%= t ".comments_count" %>: <%= paragraph.comments_count %>
<%= t ".endorsers" %>:
<% presented_endorsers = endorsers_presenters_for(paragraph).to_a %>
<% presented_endorsers.first(5).each do |presented_endorser| %>
-
<%= link_to_if(
presented_endorser.profile_path.present?,
presented_endorser.name,
presented_endorser.profile_path,
target: :blank
) %>
<% end %>
<% if presented_endorsers.count > 5 %>
-
<%= link_to(
t(".n_more_endorsers", count: presented_endorsers.count - 5),
resource_locator(paragraph).path
) %>
<% end %>
<%= t ".related_meetings" %>:
<% if paragraph.documents.any? %>
<%= t ".documents" %>:
<% paragraph.documents.each do |document| %>
-
<%= link_to translated_attribute(document.title), document.url %>
<%= document.file_type %> <%= number_to_human_size(document.file_size) %>
<% end %>
<% end %>
<% if paragraph.photos.any? %>
<%= t(".photos") %>:
<% paragraph.photos.each do |photo| %>
<%= link_to photo.big_url, target: "_blank", rel: "noopener" do %>
<%= image_tag photo.thumbnail_url, class:"thumbnail", alt: strip_tags(translated_attribute(photo.title)) %>
<% end %>
<% end %>
<% end %>