Sha256: b3a322112b660122ae7142d6f7bafc4f2aa7a1123c06b32d1a5dbaa56fe82072

Contents?: true

Size: 1.86 KB

Versions: 39

Compression:

Stored size: 1.86 KB

Contents

<div class="row column authorizations-list">
  <% if @authorizations.any? %>
    <section class="section">
      <div class="card card--list">
        <% @authorizations.each do |authorization| %>
          <div class="card--list__item">
            <div class="card--list__text">
              <%= icon "lock-unlocked", class: "card--list__icon" %>
              <div>
                <h5 class="card--list__heading">
                  <%= t("#{authorization.name}.name", scope: "decidim.authorization_handlers") %>
                </h5>
                <span class="text-small"><%= l(authorization.updated_at, format: :long) %></span>
              </div>
            </div>
            <div class="card--list__data">
              <%= link_to new_authorization_path(handler: authorization.name), class: "card--list__data__icon" do %>
                <%= icon "reload" %>
              <% end %>
            </div>
          </div>
        <% end %>
      </div>
    <% end %>
    <% if handlers.any? %>
      <div class="card card--list">
        <% handlers.each do |handler| %>
          <div class="card--list__item">
            <div class="card--list__text">
              <a href="#">
                <%= icon "lock-locked", class: "card--list__icon" %>
              </a>
              <div>
                <h5 class="card--list__heading">
                  <%= link_to t("#{handler.handler_name}.name", scope: "decidim.authorization_handlers"), new_authorization_path(handler: handler.handler_name) %>
                </h5>
              </div>
            </div>
            <div class="card--list__data">
              <%= link_to new_authorization_path(handler: handler.handler_name), class: "card--list__data__icon" do %>
                <%= icon "chevron-right" %>
              <% end %>
            </div>
          </div>
        <% end %>
      </div>
    </section>
  <% end %>
</div>

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
decidim-core-0.7.4 app/views/decidim/authorizations/index.html.erb
decidim-core-0.7.3 app/views/decidim/authorizations/index.html.erb
decidim-core-0.7.2 app/views/decidim/authorizations/index.html.erb
decidim-core-0.7.1 app/views/decidim/authorizations/index.html.erb
decidim-core-0.7.0 app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.8 app/views/decidim/authorizations/index.html.erb
decidim-0.6.8 decidim-core/app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.7 app/views/decidim/authorizations/index.html.erb
decidim-0.6.7 decidim-core/app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.6 app/views/decidim/authorizations/index.html.erb
decidim-0.6.6 decidim-core/app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.5 app/views/decidim/authorizations/index.html.erb
decidim-0.6.5 decidim-core/app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.4 app/views/decidim/authorizations/index.html.erb
decidim-0.6.4 decidim-core/app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.3 app/views/decidim/authorizations/index.html.erb
decidim-0.6.3 decidim-core/app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.2 app/views/decidim/authorizations/index.html.erb
decidim-0.6.2 decidim-core/app/views/decidim/authorizations/index.html.erb
decidim-core-0.6.1 app/views/decidim/authorizations/index.html.erb