Class: Decidim::DecidimAwesome::ContentBlocks::LandingMenuFormCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::DecidimAwesome::ContentBlocks::LandingMenuFormCell
- Includes:
- Cell::ViewModel::Partial
- Defined in:
- app/cells/decidim/decidim_awesome/content_blocks/landing_menu_form_cell.rb
Instance Method Summary collapse
- #alignment_options ⇒ Object
- #content_block ⇒ Object
- #decidim_admin_decidim_awesome ⇒ Object
- #i18n_scope ⇒ Object
- #json_menu_items ⇒ Object
- #table ⇒ Object
Instance Method Details
#alignment_options ⇒ Object
27 28 29 30 31 |
# File 'app/cells/decidim/decidim_awesome/content_blocks/landing_menu_form_cell.rb', line 27 def %w(left center right).map do |value| [t("alignment_#{value}", scope: i18n_scope), value] end end |
#content_block ⇒ Object
19 20 21 |
# File 'app/cells/decidim/decidim_awesome/content_blocks/landing_menu_form_cell.rb', line 19 def content_block [:content_block] end |
#decidim_admin_decidim_awesome ⇒ Object
15 16 17 |
# File 'app/cells/decidim/decidim_awesome/content_blocks/landing_menu_form_cell.rb', line 15 def decidim_admin_decidim_awesome Decidim::DecidimAwesome::AdminEngine.routes.url_helpers end |
#i18n_scope ⇒ Object
23 24 25 |
# File 'app/cells/decidim/decidim_awesome/content_blocks/landing_menu_form_cell.rb', line 23 def i18n_scope "decidim.decidim_awesome.content_blocks.landing_menu" end |
#json_menu_items ⇒ Object
33 34 35 |
# File 'app/cells/decidim/decidim_awesome/content_blocks/landing_menu_form_cell.rb', line 33 def MenuItemsParser.parse_json(content_block.settings.) end |
#table ⇒ Object
11 12 13 |
# File 'app/cells/decidim/decidim_awesome/content_blocks/landing_menu_form_cell.rb', line 11 def table render end |