Method: CCS::Components::GovUK::Footer::Navigation#render

Defined in:
lib/ccs/components/govuk/footer/navigation.rb

#renderActiveSupport::SafeBuffer

Generates the HTML for the GOV.UK Footer Navigation sections

Returns:

  • (ActiveSupport::SafeBuffer)


48
49
50
51
52
53
54
55
# File 'lib/ccs/components/govuk/footer/navigation.rb', line 48

def render
  tag.div(class: "govuk-footer__section govuk-grid-column-#{width}") do
    concat(tag.h2(title, class: 'govuk-footer__heading govuk-heading-m'))
    concat(tag.ul(class: "govuk-footer__list #{"govuk-footer__list--columns-#{columns}" if columns}".rstrip) do
      navigation_links.each { |navigation_link| concat(navigation_link.render) }
    end)
  end
end