Class: Decidim::FooterMenuPresenter

Inherits:
MenuPresenter show all
Defined in:
app/presenters/decidim/footer_menu_presenter.rb

Overview

A presenter to render footer menu

Instance Method Summary collapse

Methods inherited from MenuPresenter

#active_item, #evaluated_menu, #initialize

Constructor Details

This class inherits a constructor from Decidim::MenuPresenter

Instance Method Details

#renderObject



6
7
8
9
10
# File 'app/presenters/decidim/footer_menu_presenter.rb', line 6

def render
  (:nav, :role => "navigation", "aria-label" => @options[:label]) do
    safe_join([(:h2, @options[:label], class: "h5 mb-4"), render_menu])
  end
end