Sha256: abe1ab12c5185cc89618edb69c7b7ac01f25b0e66d3cb346fd5ffe9752c07f87
Contents?: true
Size: 355 Bytes
Versions: 3
Compression:
Stored size: 355 Bytes
Contents
module Lit module LocalizationsHelper def draw_icon(icon, opts={}) raw("<i class=\"fa fa-#{icon} #{opts[:class]}\" title=\"#{opts[:title]}\" ></i>") end def ejs(val) escape_javascript val.to_s end def allow_wysiwyg_editor?(key) Lit.all_translations_are_html_safe || key.to_s =~ /(\b|_|\.)html$/ end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lit-0.2.4 | app/helpers/lit/localizations_helper.rb |
lit-0.2.3 | app/helpers/lit/localizations_helper.rb |
lit-0.2.2 | app/helpers/lit/localizations_helper.rb |