Sha256: 0735083511c40d7350adee48e463c01066c701f3f0ec54869b9a6e7200e875d5
Contents?: true
Size: 1.71 KB
Versions: 5
Compression:
Stored size: 1.71 KB
Contents
<% provide :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
5 entries across 5 versions & 2 rubygems