Class: CamaleonCms::ThemeDecorator
- Inherits:
-
TermTaxonomyDecorator
- Object
- Draper::Decorator
- ApplicationDecorator
- TermTaxonomyDecorator
- CamaleonCms::ThemeDecorator
- Defined in:
- app/decorators/camaleon_cms/theme_decorator.rb
Overview
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: [email protected]
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
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_attribute_field, #the_attribute_fields, #the_field, #the_field!, #the_fields, #the_fields_grouped
Methods inherited from ApplicationDecorator
#_calc_locale, #get_locale, #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
12 13 14 |
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 12 def the_id object.id end |
#the_settings_link ⇒ Object
20 21 22 23 24 |
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 20 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
16 17 18 |
# File 'app/decorators/camaleon_cms/theme_decorator.rb', line 16 def the_settings_url h.cama_admin_settings_theme_url end |