Sha256: e6d5c0bf6b1b35bfab6e7600697041d9e55df9ce94d842fa023b8e27d5542ba2
Contents?: true
Size: 657 Bytes
Versions: 25
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true module Maglev module Admin module ThemesHelper def section_category_path(category) admin_theme_path(category_id: category.id) end def section_preview_path(section) admin_sections_preview_path(section.id) end def section_file_path(section) "<RailsRoot>/app/theme/sections/#{section.id}.yml" end def section_template_path(section) "<RailsRoot>/app/views/theme/sections/#{section.id}.html.erb" end def section_screenshot_path(section) services.fetch_section_screenshot_path.call(section: section) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems