Sha256: 242a8687e6414d2e95ce7acd74472c8304ee1f9ee3bfb84e66df323b0d4418cc

Contents?: true

Size: 668 Bytes

Versions: 31

Compression:

Stored size: 668 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" %>
<% 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

31 entries across 31 versions & 1 rubygems

Version Path
govuk_publishing_components-45.7.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.6.1 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.6.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.5.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.4.1 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.4.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.3.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.2.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.1.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-45.0.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.11.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.10.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.9.1 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.9.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.8.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.7.1 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.7.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.6.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.5.0 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb
govuk_publishing_components-44.4.2 app/views/govuk_publishing_components/components/layout_for_public/_header_logo.html.erb