<% if @granted_authorizations.any? %>
<% @granted_authorizations.each do |authorization| %>
<%= icon "lock-unlocked", class: "card--list__icon" %>
<%= t("#{authorization.name}.name", scope: "decidim.authorization_handlers") %>
<%= t("granted_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.granted_at, format: :long)) %>
<% end %>
<% end %> <% if @pending_authorizations.any? %>
<% @pending_authorizations.each do |authorization| %> <% authorization_method = Decidim::Verifications::Adapter.from_element(authorization.name) %> <%= link_to authorization_method.resume_authorization_path do %>
<%= icon "reload", class: "card--list__icon" %>
<%= t("#{authorization.name}.name", scope: "decidim.authorization_handlers") %>
<%= t("started_at", scope: "decidim.authorization_handlers", timestamp: l(authorization.updated_at, format: :long)) %>
<%= icon "chevron-right" %>
<% end %> <% end %>
<% end %> <% if unauthorized_methods.any? %>
<% unauthorized_methods.each do |unauthorized_method| %> <%= link_to unauthorized_method.root_path do %>
<%= icon "lock-locked", class: "card--list__icon" %>
<%= t("#{unauthorized_method.key}.name", scope: "decidim.authorization_handlers") %>
<%= t("#{unauthorized_method.key}.explanation", scope: "decidim.authorization_handlers") %>
<%= icon "chevron-right" %>
<% end %> <% end %>
<% end %>