Sha256: 20fad526da16f1190d98bf69b8e6412b8dffed7869fd8113f3f6ed0bec9c8c9a
Contents?: true
Size: 648 Bytes
Versions: 17
Compression:
Stored size: 648 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin class AsideMenuPresenter < Decidim::MenuPresenter def render(render_options = {}, &) styles = %w(item_show__content-menu) content_tag :div, class: styles.join(" ") do output = [] output.push render_title(render_options) if render_options.fetch(:title, false) output.push render_menu(&) safe_join(output) end end protected def render_title(render_options) content_tag :div, class: "secondary-nav__title" do render_options.fetch(:title) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems