Class: CamaleonCms::ThemeDecorator

Inherits:
TermTaxonomyDecorator
  • Object
show all
Defined in:
app/decorators/camaleon_cms/theme_decorator.rb

Instance Method Summary collapse

Instance Method Details

#the_idObject



5
6
7
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 5

def the_id
  object.id
end


14
15
16
17
18
19
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 14

def the_settings_link(title = nil, attrs = {})
  return '' if h.cama_current_user.blank?

  attrs = { target: '_blank', style: 'font-size:11px !important;cursor:pointer;' }.merge(attrs)
  h.link_to(h.safe_join(['', title || h.ct('edit', default: 'Edit')]), the_settings_url, attrs)
end

#the_settings_urlObject



9
10
11
12
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 9

def the_settings_url
  args = h.cama_current_site_host_port({})
  h.cama_admin_settings_theme_url(args)
end