Sha256: e37133d0ecbeebd051acbecb4a626520cbb59804264cf87c7c38a3dfaeee8575

Contents?: true

Size: 1.04 KB

Versions: 25

Compression:

Stored size: 1.04 KB

Contents

<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">
        <% if authorization.expired? %>
          <%= t("expired_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.expires_at, format: :long)) %>
        <% else %>
          <%= t("granted_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.granted_at, format: :long)) %>
          <% if authorization.expires_at.present? %>
            <%= t("expires_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.expires_at, format: :long)) %>
          <% end %>
        <% end %>
      </span>
    </div>
  </div>
  <% if authorization.expired? %>
    <div class="card--list__data">
      <span class="card--list__data__icon">
        <%= icon "reload" %>
      </span>
    </div>
  <% end %>
</div>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-verifications-0.16.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.16.0 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.15.2 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.15.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.15.0 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.14.4 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.14.3 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.14.2 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.14.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.13.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.12.2 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.13.0 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.12.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.13.0.pre1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.12.0 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.11.2 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.12.0.pre app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.11.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.11.0.pre1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.10.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb