<% if current_user && !current_user.verifiable? %>

<%= t ".unconfirmed.title" %>

<%= t ".unconfirmed.explanation_html", email: current_user.email %>

<%= t ".unconfirmed.confirmation_instructions" %>

<%= link_to t(".unconfirmed.request_confirmation_instructions"), new_confirmation_path(Decidim::User), class: "button expanded" %>
<% else %> <% base_code = authorizations.global_code || :missing %>

<%= t ".#{base_code}.title" %>

<% authorizations.statuses.each do |status| %> <% next if status.ok? || authorizations.global_code && status.code != base_code %>

<%= t ".#{status.code}.explanation", authorization: t("#{status.handler_name}.name", scope: "decidim.authorization_handlers") %>

<% if status.data[:extra_explanation] %>

<%= t status.data[:extra_explanation][:key], **status.data[:extra_explanation][:params] %>

<% end %> <% if status.data[:fields] %> <% end %>
<% if status.data[:action].present? %> <%= link_to t(".#{status.code}.#{status.data[:action]}", authorization: t("#{status.handler_name}.name", scope: "decidim.authorization_handlers")), authorize_action_path(status.handler_name), class: "button expanded" %> <% else %> <% end %>
<% if status.data[:cancel] %>
<% end %> <% end %> <% end %>