Sha256: 5f9f90db78e587e326b7ad597a3010408f79788c4ce963afa13cb3398f36d683

Contents?: true

Size: 1.67 KB

Versions: 13

Compression:

Stored size: 1.67 KB

Contents

<% add_decidim_page_title(t("authorizations", scope: "layouts.decidim.user_profile")) %>
<% content_for(:subtitle) { t("authorizations", scope: "layouts.decidim.user_profile") } %>
<% url_params = (redirect_url.present? ? { redirect_url: } : {}) %>

<%= append_javascript_pack_tag "decidim_verifications" %>
<%= append_stylesheet_pack_tag "decidim_verifications" %>

<%= render layout: "layouts/decidim/shared/layout_user_profile" do %>
  <section class="authorizations-list">
    <%
        subsections = []

        subsections << {
          title: t("authorizations.index.granted_verification", scope: "decidim.verifications"),
          items: @granted_authorizations.map { |authorization| granted_authorization_display_data(authorization, redirect_url) }
        } if @granted_authorizations.any?

        subsections << {
          title: t("authorizations.index.pending_verification", scope: "decidim.verifications"),
          items: @pending_authorizations.map { |authorization| pending_authorization_display_data(authorization, redirect_url) }
        } if @pending_authorizations.any?

        subsections << {
          title: t("authorizations.index.unauthorized_methods", scope: "decidim.verifications"),
          items: unauthorized_methods.map { |method| unauthorized_method_display_data(method, redirect_url) }
        } if unauthorized_methods.any?
    %>

    <% subsections.each do |subsection| %>
      <div class="verification__container-title"><%= subsection[:title] %></div>
      <div class="verification__container">
        <% subsection[:items].each do |locals| %>
          <%= render partial: "item", locals: %>
        <% end %>
      </div>
    <% end %>
  </section>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-verifications-0.29.1 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.28.4 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.29.0 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.28.3 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.29.0.rc4 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.29.0.rc3 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.29.0.rc2 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.29.0.rc1 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.28.2 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.28.1 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.28.0 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.28.0.rc5 app/views/decidim/verifications/authorizations/index.html.erb
decidim-verifications-0.28.0.rc4 app/views/decidim/verifications/authorizations/index.html.erb