Class: CamaleonCms::ThemeDecorator
- Inherits:
-
TermTaxonomyDecorator
- Object
- Draper::Decorator
- ApplicationDecorator
- TermTaxonomyDecorator
- CamaleonCms::ThemeDecorator
- Defined in:
- app/decorators/camaleon_cms/theme_decorator.rb
Instance Method Summary collapse
Methods inherited from TermTaxonomyDecorator
#the_content, #the_edit_link, #the_edit_url, #the_excerpt, #the_owner, #the_parent, #the_post, #the_posts, #the_slug, #the_status, #the_title
Methods included from CustomFieldsConcern
#render_fields, #the_field, #the_field_grouped, #the_fields, #the_fields_grouped, #the_json_field, #the_json_fields
Methods inherited from ApplicationDecorator
#_calc_locale, #get_locale, #marshal_dump, #marshal_load, #set_decoration_locale, #the_breadcrumb, #the_created_at, #the_keywords, #the_slug, #the_updated_at
Methods included from MetasDecoratorMethods
Instance Method Details
#the_id ⇒ Object
5 6 7 |
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 5 def the_id object.id end |
#the_settings_link ⇒ Object
14 15 16 17 18 19 |
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 14 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("→ #{title || h.ct('edit', default: 'Edit')}".html_safe, the_settings_url, attrs) end |
#the_settings_url ⇒ Object
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 |