Sha256: 679e1cb0348a49a32293abf3ea4854bcea850fb042b4712e9804f1b52b093922

Contents?: true

Size: 1.33 KB

Versions: 46

Compression:

Stored size: 1.33 KB

Contents

<div class="card--list__text">
  <%= icon "lock-locked", class: "card--list__icon", role: "img", "aria-hidden": true %>
  <div>
    <h5 class="card--list__heading">
      <%= t("#{authorization.name}.name", scope: "decidim.authorization_handlers") %>
    </h5>
    <span class="text-small <%= "alert" if authorization.expired? %>">
      <% 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", aria_label: t("renew", scope: "decidim.authorization_handlers"), role: "img" %>
    </span>
  </div>
<% elsif authorization.renewable? %>
  <div class="card--list__data">
    <span class="card--list__data__icon">
      <%= icon "reload", aria_label: t("renew", scope: "decidim.authorization_handlers"), role: "img" %>
    </span>
  </div>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
decidim-verifications-0.27.9 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.8 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.7 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.6 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.10 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.9 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.5 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.8 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.4 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.3 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.7 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.5 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.2 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.4 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.0 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.3 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.0.rc2 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.27.0.rc1 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb
decidim-verifications-0.26.2 app/views/decidim/verifications/authorizations/_granted_authorization.html.erb