% content_for :title do %>
<%= t("models.participatory_process.fields.title", scope: "decidim.admin") %> | <%= t("models.participatory_process.fields.promoted", scope: "decidim.admin") %> | <%= t("models.participatory_process.fields.published", scope: "decidim.admin") %> | <%= t("models.participatory_process.fields.created_at", scope: "decidim.admin") %> | <%= t("actions.title", scope: "decidim.admin") %> |
---|---|---|---|---|
<%= link_to translated_attribute(process.title), process %> |
<%= humanize_boolean process.promoted? %> | <%= humanize_boolean process.published? %> | <%= l process.created_at, format: :short %> | <% if can? :update, process %> <%= link_to t("actions.edit", scope: "decidim.admin"), ['edit', process] %> <% end %> <% if can? :publish, process %> <% if process.published? %> <%= link_to t("actions.unpublish", scope: "decidim.admin"), participatory_process_publish_path(process), method: :delete, class: "small button secondary" %> <% else %> <%= link_to t("actions.publish", scope: "decidim.admin"), participatory_process_publish_path(process), method: :post, class: "small button secondary" %> <% end %> <% end %> <% if can? :destroy, process %> <%= link_to t("actions.destroy", scope: "decidim.admin"), process, method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %> |