Sha256: fbbd96cea4ec5b11ff165a4cfc035edeb894cdfa7590e323fcb19917e48991ef
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
=begin Camaleon CMS is a content management system Copyright (C) 2015 by Owen Peredo Diaz Email: owenperedo@gmail.com 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. =end 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("→ #{title || h.ct("edit", default: 'Edit')}".html_safe, the_settings_url, attrs) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
camaleon_cms-2.2.1 | app/decorators/camaleon_cms/theme_decorator.rb |
camaleon_cms-2.2.0 | app/decorators/camaleon_cms/theme_decorator.rb |