Sha256: c64d93e90d7e2cad0d2b07251af1d451e602b442845f7a239c1af74d6e9331d2

Contents?: true

Size: 707 Bytes

Versions: 6

Compression:

Stored size: 707 Bytes

Contents

<%
  hide_logo_text ||= false
  large_navbar ||= false
  logo_text ||= t("components.layout_super_navigation_header.logo_text")
  logotype_classes = %w(govuk-header__logotype gem-c-layout-super-navigation-header__logotype-crown)
  logotype_classes << "gem-c-layout-super-navigation-header__logotype-crown--large-navbar" if large_navbar  
%>

<% unless hide_logo_text %>
  <%= render "govuk_publishing_components/components/govuk_logo/govuk_logo", {
    aria_label_text: logo_text,
  } %>
<% else %>
  <span class="govuk-visually-hidden">
    <%= logo_text %>
  </span>
  <%= render "govuk_publishing_components/components/govuk_logo/govuk_logo_crown_only", {
    classes: logotype_classes,
  } %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
govuk_publishing_components-43.1.1 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-43.1.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-43.0.2 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-43.0.1 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-43.0.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-42.1.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb