Sha256: f73ab207b617dc2ce883b384eb5312f441fa8f127b47565baaf1b05bbb7cc08c

Contents?: true

Size: 468 Bytes

Versions: 7

Compression:

Stored size: 468 Bytes

Contents

class CamaleonCms::ThemeDecorator < CamaleonCms::TermTaxonomyDecorator
  delegate_all

  def the_id
    object.id
  end

  def the_settings_url
    h.cama_admin_settings_theme_url
  end

  def the_settings_link
    return '' unless h.cama_current_user.present?
    attrs = {target: "_blank", style: "font-size:11px !important;cursor:pointer;"}.merge(attrs)
    h.link_to("&rarr; #{title || h.ct("edit", default: 'Edit')}".html_safe, the_settings_url, attrs)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
camaleon_cms-2.3.6 app/decorators/camaleon_cms/theme_decorator.rb
camaleon_cms-2.3.5 app/decorators/camaleon_cms/theme_decorator.rb
camaleon_cms-2.3.4 app/decorators/camaleon_cms/theme_decorator.rb
camaleon_cms-2.3.3 app/decorators/camaleon_cms/theme_decorator.rb
camaleon_cms-2.3.2 app/decorators/camaleon_cms/theme_decorator.rb
camaleon_cms-2.3.1 app/decorators/camaleon_cms/theme_decorator.rb
camaleon_cms-2.3.0 app/decorators/camaleon_cms/theme_decorator.rb