<% add_decidim_page_title(t("participatory_processes", scope: "decidim.admin.titles")) %> <%= render partial: "decidim/participatory_processes/admin/shared/secondary_nav" %>

<%= t("participatory_processes", scope: "decidim.admin.titles") %> <% if allowed_to? :create, :process %> <%= link_to t("actions.new_process", scope: "decidim.admin"), ["new", "participatory_process"], class: "button tiny button--title" %> <% end %> <% if process_group %> < <%= link_to translated_attribute(process_group.title), edit_participatory_process_group_path(process_group) %> <% end %> <% if allowed_to? :import, :process %> <%= link_to t("actions.import_process", scope: "decidim.admin"), new_import_path, class: "button tiny button--title" %> <% end %>

<%= admin_filter_selector %>
<% @participatory_processes.each do |process| %> <% end %>
<%= sort_link(query, :title, t("models.participatory_process.fields.title", scope: "decidim.admin")) %> <%= sort_link(query, :created_at, t("models.participatory_process.fields.created_at", scope: "decidim.admin"), default_order: :desc) %> <%= sort_link(query, :private_space, t("models.participatory_process.fields.private", scope: "decidim.admin")) %> <%= sort_link(query, :published_at, t("models.participatory_process.fields.published", scope: "decidim.admin")) %>
<% if process.promoted? %> "> <%= icon "star" %> <% end %> <% if allowed_to? :update, :process, process: process %> <%= link_to translated_attribute(process.title), edit_participatory_process_path(process) %>
<% elsif allowed_to? :read, :component, process: process %> <%= link_to translated_attribute(process.title), components_path(process) %>
<% elsif allowed_to? :preview, :process, process: process %> <%= link_to translated_attribute(process.title), decidim_participatory_processes.participatory_process_path(process) %>
<% elsif allowed_to? :read, :moderation, process: process %> <%= link_to translated_attribute(process.title), moderations_path(process) %>
<% else %> <%= translated_attribute(process.title) %> <% end %>
<%= l process.created_at, format: :short %> <% if process.private_space? %> <%= t("participatory_processes.index.private", scope: "decidim.admin") %> <% else %> <%= t("participatory_processes.index.public", scope: "decidim.admin") %> <% end %> <% if process.published? %> <%= t("participatory_processes.index.published", scope: "decidim.admin") %> <% else %> <%= t("participatory_processes.index.not_published", scope: "decidim.admin") %> <% end %> <% if allowed_to? :create, :process, process: process %> <%= icon_link_to "data-transfer-download", participatory_process_export_path(process), t("actions.export", scope: "decidim.admin"), method: :post, class: "action-icon--export" %> <% else %> <% end %> <% if allowed_to? :create, :process, process: process %> <%= icon_link_to "clipboard", new_participatory_process_copy_path(process), t("actions.duplicate", scope: "decidim.admin"), class: "action-icon--copy" %> <% else %> <% end %> <% if allowed_to? :update, :process, process: process %> <%= icon_link_to "pencil", edit_participatory_process_path(process), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %> <% else %> <% end %> <% if allowed_to? :preview, :process, process: process %> <%= icon_link_to "eye", decidim_participatory_processes.participatory_process_path(process), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %> <% else %> <% end %>
<%= paginate @participatory_processes, theme: "decidim" %>