Sha256: 4129eeeb36d31ecf367a4eb1e056edb0f293d2fe3578762e6b38a5b8f9426691

Contents?: true

Size: 1.67 KB

Versions: 180

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

180 entries across 180 versions & 1 rubygems

Version Path
govuk_publishing_components-45.9.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.8.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.7.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.6.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.6.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.5.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.4.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.4.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.3.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.2.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.1.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-45.0.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.11.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.10.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.9.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.9.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.8.0 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
govuk_publishing_components-44.7.1 app/views/govuk_publishing_components/audit/_items_in_applications.html.erb
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