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

Version Path
maglevcms-1.8.0 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.7.3 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.7.2 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.7.1 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.7.0 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.6.1 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.6.0 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.5.1 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.4.0 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.3.0 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.2.2 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.2.1 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.2.0 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.1.7 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.1.6 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.1.5 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.1.4 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.1.3 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.1.2 app/helpers/maglev/admin/themes_helper.rb
maglevcms-1.1.1 app/helpers/maglev/admin/themes_helper.rb