Method: CCS::Components::GovUK::Footer::Navigation#render
- Defined in:
- lib/ccs/components/govuk/footer/navigation.rb
#render ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Footer Navigation sections
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 .each { || concat(.render) } end) end end |