Sha256: 6a0fa27a8d912e18d26c79e5c23fbfef734f9e0b1839f5bca3bdf919304a0578

Contents?: true

Size: 1.99 KB

Versions: 9

Compression:

Stored size: 1.99 KB

Contents

<% add_decidim_page_title(t("authorization_workflows", scope: "decidim.admin.titles")) %>

<div class="item_show__header">
  <h1 class="item_show__header-title">
    <%= t("authorization_workflows", scope: "decidim.admin.titles") %>
  </h1>
</div>

<div class="card">
  <%= cell("decidim/verifications/revocations", @authorizations) %>
  <div class="card-divider">
    <h2 class="card-title">
      <%= t("decidim.admin.titles.authorization_workflows") %>
    </h2>
  </div>
  <div class="card-section">
    <table class="table-list">
      <thead>
        <tr>
          <th><%= t("decidim.authorization_handlers.name") %></th>
          <th class="!text-left"><%= t("decidim.authorization_handlers.help") %></th>
        </tr>
      </thead>
      <tbody>
        <% @workflows.each do |manifest| %>
          <tr>
            <% workflow = Decidim::Verifications::Adapter.new(manifest) %>
            <td>
              <% if workflow.has_admin_root_path? %>
                <%= link_to workflow.fullname, workflow.admin_root_path %>
              <% else %>
                <%= workflow.fullname %>
              <% end %>
            </td>
            <td class="!text-left">
              <% i18n_key = "decidim.authorization_handlers.admin.#{workflow.key}.help" %>
              <% if I18n.exists?(i18n_key, current_locale) %>
                <ul class="list-decimal ml-4">
                  <% t(i18n_key).each do |tip| %>
                    <li><%= tip %></li>
                  <% end %>
                </ul>
              <% else %>
                <div class="flash warning">
                  <ul>
                    <% default_help = t("decidim.authorization_handlers.admin.default.help", authorization_handler: i18n_key) %>
                    <% default_help.each do |tip| %>
                      <li><%= tip %></li>
                    <% end %>
                  </ul>
                </div>
              <% end %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-admin-0.30.0.rc2 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.30.0.rc1 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.29.2 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.29.1 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.29.0 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.29.0.rc4 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.29.0.rc3 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.29.0.rc2 app/views/decidim/admin/authorization_workflows/index.html.erb
decidim-admin-0.29.0.rc1 app/views/decidim/admin/authorization_workflows/index.html.erb