Sha256: 6c1cee6685830001f88e619784cf00b36c1b56272c34924e3d44aaef018b3acc
Contents?: true
Size: 519 Bytes
Versions: 64
Compression:
Stored size: 519 Bytes
Contents
class CamaleonCms::ThemeDecorator < CamaleonCms::TermTaxonomyDecorator delegate_all def the_id object.id end def the_settings_url args = h.cama_current_site_host_port({}) h.cama_admin_settings_theme_url(args) 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
64 entries across 64 versions & 2 rubygems