Module: Maglev::Admin::ThemesHelper
- Defined in:
- app/helpers/maglev/admin/themes_helper.rb
Instance Method Summary collapse
- #section_category_path(category) ⇒ Object
- #section_file_path(section) ⇒ Object
- #section_preview_path(section) ⇒ Object
- #section_screenshot_path(section) ⇒ Object
- #section_template_path(section) ⇒ Object
Instance Method Details
#section_category_path(category) ⇒ Object
6 7 8 |
# File 'app/helpers/maglev/admin/themes_helper.rb', line 6 def section_category_path(category) admin_theme_path(category_id: category.id) end |
#section_file_path(section) ⇒ Object
14 15 16 |
# File 'app/helpers/maglev/admin/themes_helper.rb', line 14 def section_file_path(section) "<RailsRoot>/app/theme/sections/#{section.id}.yml" end |
#section_preview_path(section) ⇒ Object
10 11 12 |
# File 'app/helpers/maglev/admin/themes_helper.rb', line 10 def section_preview_path(section) admin_sections_preview_path(section.id) end |
#section_screenshot_path(section) ⇒ Object
22 23 24 |
# File 'app/helpers/maglev/admin/themes_helper.rb', line 22 def section_screenshot_path(section) services.fetch_section_screenshot_path.call(section: section) end |
#section_template_path(section) ⇒ Object
18 19 20 |
# File 'app/helpers/maglev/admin/themes_helper.rb', line 18 def section_template_path(section) "<RailsRoot>/app/views/theme/sections/#{section.id}.html.erb" end |