<%= t "decidim.admin.titles.participatory_processes" %><%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process.name", scope: "decidim.admin")), ['new', 'participatory_process'], class: 'button tiny button--title' if can? :create, Decidim::ParticipatoryProcess %>

<% @participatory_processes.each do |process| %> <% end %>
<%= t("models.participatory_process.fields.title", scope: "decidim.admin") %> <%= t("models.participatory_process.fields.created_at", scope: "decidim.admin") %> <%= t("models.participatory_process.fields.published", scope: "decidim.admin") %>
<% if process.promoted? %> "> <%= icon "star" %> <% end %> <% if can? :update, process %> <%= link_to translated_attribute(process.title), edit_participatory_process_path(process) %>
<% elsif can? :preview, process %> <%= link_to translated_attribute(process.title), decidim_participatory_processes.participatory_process_path(process) %>
<% elsif can? :read, Decidim::Moderation %> <%= link_to translated_attribute(process.title), moderations_path(process) %>
<% else %> <%= translated_attribute(process.title) %> <% end %>
<%= l process.created_at, format: :short %> <% if process.published? %> <%= t('participatory_processes.index.published', scope: "decidim.admin") %> <% else %> <%= t('participatory_processes.index.not_published', scope: "decidim.admin") %> <% end %> <% if can? :create, process %> <%= icon_link_to "clipboard", new_participatory_process_copy_path(process), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %> <% end %> <% if can? :update, process %> <%= icon_link_to "pencil", edit_participatory_process_path(process), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %> <% end %> <% if can? :preview, process %> <%= icon_link_to "eye", decidim_participatory_processes.participatory_process_path(process), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %> <% end %>