diff options
Diffstat (limited to 'lib/helpers/icons_helper.rb')
-rw-r--r-- | lib/helpers/icons_helper.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/helpers/icons_helper.rb b/lib/helpers/icons_helper.rb index 0f1e1728..b0831d48 100644 --- a/lib/helpers/icons_helper.rb +++ b/lib/helpers/icons_helper.rb @@ -8,11 +8,13 @@ module Nanoc::Helpers ICONS_SVG = '/assets/images/icons.svg' unless const_defined?('ICONS_SVG') - GITLAB_SVGS_MAPPING = { - 'bulb' => 'tip', - 'information-o' => 'note', - 'warning' => 'caution' - }.freeze + unless const_defined?('GITLAB_SVGS_MAPPING') + GITLAB_SVGS_MAPPING = { + 'bulb' => 'tip', + 'information-o' => 'note', + 'warning' => 'caution' + }.freeze + end def icon(icon_name, size = nil, css_class = nil) unless known_sprites.include?(icon_name) |