diff options
author | haseeb <haseebeqx@yahoo.com> | 2018-02-06 16:33:18 +0300 |
---|---|---|
committer | haseeb <haseebeqx@yahoo.com> | 2018-02-28 16:18:26 +0300 |
commit | 27e8d38cea92d165a2e8400b25df23f408b4dca0 (patch) | |
tree | 0a16f63c8f380c92fb4185ca21ba8a264c572641 /app/helpers/icons_helper.rb | |
parent | 56af0631c6c6d838301ac068f2e79b8f4de9fda7 (diff) |
embedded snippets support
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r-- | app/helpers/icons_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index c5522ff7a69..67001c55e88 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -43,6 +43,10 @@ module IconsHelper content_tag(:svg, content_tag(:use, "", { "xlink:href" => "#{sprite_icon_path}##{icon_name}" } ), class: css_classes.empty? ? nil : css_classes) end + def external_snippet_icon(name) + content_tag(:img, "", src: "#{image_url('/assets/ext_snippet_icons')}/#{name}.png", width: '16px', height: '16px') + end + def audit_icon(names, options = {}) case names when "standard" |