Sha256: 4129eeeb36d31ecf367a4eb1e056edb0f293d2fe3578762e6b38a5b8f9426691

Contents?: true

Size: 1.67 KB

Versions: 182

Compression:

Stored size: 1.67 KB

Contents

<% if @other_applications %>
  <% accordion_content = capture do %>
    <% if content.any? %>
      <dl class="govuk-summary-list">
        <% content.each do |item| %>
          <div class="govuk-summary-list__row">
            <dt class="govuk-summary-list__key">
              <%= item[:name] %> (<%= pluralize(item[:count], 'use') %>)
            </dt>
            <dd class="govuk-summary-list__value">
              <% item[:locations].each do |application| %>
                <% github_link = 'https://github.com/alphagov/' + application[:name] + '/blob/main/' %>
                <details class="govuk-details govuk-!-margin-bottom-2" data-module="govuk-details">
                  <summary class="govuk-details__summary">
                    <span class="govuk-details__summary-text">
                      <%= application[:name] %> (<%= application[:locations].length %>)
                    </span>
                  </summary>
                  <div class="govuk-details__text">
                    <ul class="govuk-list govuk-list--bullet">
                      <% application[:locations].each do |location| %>
                        <li>
                          <a href="<%= github_link %><%= location %>" class="govuk-link"><%= location %></a>
                        </li>
                      <% end %>
                    </ul>
                  </div>
                </details>
              <% end %>
            </dd>
          </div>
        <% end %>
      </dl>
    <% end %>
  <% end %>

  <%
    items << {
      heading: {
        text: heading,
      },
      summary: {
        text: summary,
      },
      content: {
        html: accordion_content
      },
    }
  %>
<% end %>

Version data entries

182 entries across 182 versions & 1 rubygems

Version Path
govuk_publishing_components-44.7.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.6.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.5.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.4.2 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.4.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.4.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.3.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.2.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.1.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.0.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.5.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.4.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.4.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.3.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.2.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.1.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.1.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.0.2 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.0.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-43.0.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb