<%= result.id %>
|
<%= link_to translated_attribute(result.title), results_path(parent_id: result.id) %>
|
<% if result.category %>
<%= translated_attribute result.category.name %>
<% end %>
|
<%= td_resource_scope_for(result.scope) %>
<% if result.status %>
<%= translated_attribute result.status.name %>
<% end %>
|
<%= result.progress&.to_i %>
|
<%= l result.created_at, format: :decidim_short %>
|
<%= icon_link_to "eye", resource_locator(result).path, t("actions.preview", scope: "decidim.accountability"), class: "action-icon--preview", target: :blank %>
<% if allowed_to? :update, :result, result: result %>
<%= icon_link_to "plus", results_path(parent_id: result.id), t("actions.new", scope: "decidim.accountability", name: t("models.result.name", scope: "decidim.accountability.admin")), class: "action-icon--plus" %>
<% end %>
<% if allowed_to? :update, :result, result: result %>
<%= icon_link_to "clock", result_timeline_entries_path(result), t("actions.timeline_entries", scope: "decidim.accountability"), class: "action-icon--clock" %>
<% end %>
<% if allowed_to? :update, :result, result: result %>
<%= icon_link_to "pencil", edit_result_path(result), t("actions.edit", scope: "decidim.accountability"), class: "action-icon--edit" %>
<% end %>
<% if allowed_to? :update, :result, result: result %>
<%= icon_link_to "folder", result_attachment_collections_path(result), t("actions.attachment_collections", scope: "decidim.accountability"), class: "action-icon--attachment_collections" %>
<% end %>
<% if allowed_to? :update, :result, result: result %>
<%= icon_link_to "paperclip", result_attachments_path(result), t("actions.attachments", scope: "decidim.accountability"), class: "action-icon--attachments" %>
<% end %>
<%= resource_permissions_link(result) %>
<% if allowed_to? :destroy, :result, result: result %>
<%= icon_link_to "circle-x", result_path(result), t("actions.destroy", scope: "decidim.accountability"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.accountability", name: t("models.result.name", scope: "decidim.accountability.admin")) } %>
<% end %>
|
<% end %>