<%= link_to "#{t ".paragraphs"} > ", paragraphs_path %> <%= decidim_html_escape(present(paragraph).title).html_safe %> <% if allowed_to? :edit, :paragraph, paragraph: paragraph %> <%= icon_link_to "pencil", edit_paragraph_path(paragraph), t("actions.edit_paragraph", scope: "decidim.enhanced_textwork"), class: "action-icon--edit-paragraph" %> <% end %>

<%= 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 ".comments_positive_count" %>: <%= paragraph.comments.positive.count %>
  • <%= t ".comments_neutral_count" %>: <%= paragraph.comments.neutral.count %>
  • <%= t ".comments_negative_count" %>: <%= paragraph.comments.negative.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") %>:
<% end %>
<% if paragraph.valuators.any? %>

<%= t ".valuators" %>

<%= t ".assigned_valuators" %>:
    <% paragraph.valuation_assignments.each do |assignment| %> <% presented_valuator = present(assignment.valuator) %>
  • <%= link_to( presented_valuator.name, presented_valuator.profile_path, target: :blank ) %> <% if allowed_to? :unassign_from_valuator, :paragraphs, valuator: assignment.valuator %> <%= icon_link_to( "circle-x", paragraph_valuation_assignment_path(paragraph, assignment.valuator_role), t(".remove_assignment"), method: :delete, data: { confirm: t(".remove_assignment_confirmation") }, class: "red-icon" ) %> <% end %>
  • <% end %>
<% end %> <% if allowed_to?(:create, :paragraph_note, paragraph: paragraph) %> <%= render "decidim/enhanced_textwork/admin/paragraph_notes/paragraph_notes" %> <% end %> <% if allowed_to?(:create, :paragraph_answer, paragraph: paragraph) && !paragraph.emendation? %> <%= render "decidim/enhanced_textwork/admin/paragraph_answers/form" %> <% end %>