>
<%= check_box_tag "proposal_ids_s[]", proposal.id, false, class: "js-check-all-proposal js-proposal-list-check js-proposal-id-#{proposal.id}" %>
|
<% if allowed_to? :edit, :proposal, proposal: proposal %>
<%= link_to present(proposal).title(html_escape: true), proposal_path(proposal) %>
<% else %>
<%= present(proposal).title(html_escape: true) %>
<% end %>
<% if proposal.category %>
<%= icon "price-tag-3-line", class: "fill-gray w-4 h-4" %>
<%= translated_attribute proposal.category.name %>
<% end %>
<%= icon "scan-line", class: "fill-gray w-4 h-4" %>
<% if proposal.scope %>
<%= translated_attribute proposal.scope.name %>
<% else %>
<%= t("decidim.scopes.global") %>
<% end %>
|
<%= l proposal.published_at, format: :decidim_short %>
|
<% unless current_settings.publish_answers_immediately? %>
<% if proposal.answered? && !proposal.emendation? %>
<%= humanize_boolean proposal.published_state? %>
<% else %>
-
<% end %>
|
<% end %>
<% if current_settings.votes_enabled? %>
<%= proposal.proposal_votes_count %>
|
<% end %>
<% if current_component.settings.comments_enabled? and !current_settings.comments_blocked? %>
<%= proposal.comments_count %>
|
<% end %>
<%= proposal.proposal_notes_count %>
|
<%= proposal.valuation_assignments_count %>
|
<%= t("decidim/amendment", scope: "activerecord.models", count: 1) if proposal.emendation? %>
<%= proposal_complete_state proposal %>
|
<% if allowed_to? :edit, :proposal, proposal: proposal %>
<%= icon_link_to "pencil-line", edit_proposal_path(proposal), t("actions.edit_proposal", scope: "decidim.proposals"), class: "action-icon--edit-proposal" %>
<% else %>
<% end %>
<%= icon_with_link_to_proposal(proposal) %>
<%= icon_link_to "eye-line", resource_locator(proposal).path, t("actions.preview", scope: "decidim.proposals.admin"), class: "action-icon--preview", target: :blank, data: { "external-link": false } %>
<%= resource_permissions_link(proposal) %>
|