Sha256: da8dfa37c8791a8a8f21409ca26523367876c873cca3d42520c72528b98e5be8
Contents?: true
Size: 1.09 KB
Versions: 25
Compression:
Stored size: 1.09 KB
Contents
<% add_gem_component_stylesheet("devolved-nations") shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) devolved_nations_helper = GovukPublishingComponents::Presenters::DevolvedNationsHelper.new(local_assigns) applies_to ||= t("components.devolved_nations.applies_to") heading_level ||= 2 %> <% if national_applicability.any? { |k,v| v[:applicable] == true } %> <%= tag.section class: "gem-c-devolved-nations" do %> <%= content_tag(shared_helper.get_heading_level, class: "govuk-heading-s govuk-!-margin-bottom-0") do %> <%= applies_to %> <%= devolved_nations_helper.applicable_nations_title_text %> <% end %> <% if devolved_nations_helper.nations_with_urls.any? %> <%= content_tag :ul, class: "govuk-list govuk-!-margin-top-1 govuk-!-margin-bottom-0" do -%> <% devolved_nations_helper.nations_with_urls.each do |k, v| %> <%= content_tag(:li, link_to(devolved_nations_helper.alternative_content_text(k), v[:alternative_url], class: "govuk-link")) %> <% end %> <% end %> <% end %> <% end %> <% end %>
Version data entries
25 entries across 25 versions & 1 rubygems