Sha256: d57ff9f8b17ec80eb50799979449be5ebeaed8e5cc6e1de2788b3e3e3caaf761

Contents?: true

Size: 1.71 KB

Versions: 6

Compression:

Stored size: 1.71 KB

Contents

<% content_for :title do %>
  <h2><%= t "decidim.admin.titles.participatory_processes" %></h2>
<% end %>

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

<table class="stack">
  <thead>
    <tr>
      <th><%= t("models.participatory_process.fields.title", scope: "decidim.admin") %></th>
      <th><%= t("models.participatory_process.fields.promoted", scope: "decidim.admin") %></th>
      <th><%= t("models.participatory_process.fields.published", scope: "decidim.admin") %></th>
      <th><%= t("models.participatory_process.fields.created_at", scope: "decidim.admin") %></th>
      <th class="actions"><%= t("actions.title", scope: "decidim.admin") %></th>
    </tr>
  </thead>
  <tbody>
    <% @participatory_processes.each do |process| %>
      <tr>
        <td>
          <%= link_to translated_attribute(process.title), process %><br />
        </td>
        <td>
          <%= humanize_boolean process.promoted? %>
        </td>
        <td>
          <%= humanize_boolean process.published? %>
        </td>
        <td>
          <%= l process.created_at, format: :short %>
        </td>
        <td class="actions">
          <% if can? :preview, process %>
            <%= link_to t("actions.preview", scope: "decidim.admin"), decidim.participatory_process_path(process) %>
          <% end %>
          <% if can? :update, process %>
            <%= link_to t("actions.configure", scope: "decidim.admin"), process, class: "small button secondary" %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
decidim-admin-0.0.3 app/views/decidim/admin/participatory_processes/index.html.erb
decidim-0.0.3 decidim-admin/app/views/decidim/admin/participatory_processes/index.html.erb
decidim-admin-0.0.2 app/views/decidim/admin/participatory_processes/index.html.erb
decidim-0.0.2 decidim-admin/app/views/decidim/admin/participatory_processes/index.html.erb
decidim-admin-0.0.1 app/views/decidim/admin/participatory_processes/index.html.erb
decidim-0.0.1 decidim-admin/app/views/decidim/admin/participatory_processes/index.html.erb