diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 03:07:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-31 03:07:51 +0000 |
commit | 83a3209c3f8e5bc055acf80f3440335d2b97133b (patch) | |
tree | 0bb8d48ee018534d319311358f7dab6549b752e1 /lib | |
parent | f6e2f302412fcb32b644b379778964791789cb62 (diff) | |
download | gitlab-ce-83a3209c3f8e5bc055acf80f3440335d2b97133b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/emoji.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/emoji.rb b/lib/gitlab/emoji.rb index ce1dfb0753c..305bcada2f5 100644 --- a/lib/gitlab/emoji.rb +++ b/lib/gitlab/emoji.rb @@ -45,7 +45,7 @@ module Gitlab end # CSS sprite fallback takes precedence over image fallback - def gl_emoji_tag(name) + def gl_emoji_tag(name, options = {}) emoji_name = emojis_aliases[name] || name emoji_info = emojis[emoji_name] return unless emoji_info @@ -54,8 +54,9 @@ module Gitlab name: emoji_name, unicode_version: emoji_unicode_version(emoji_name) } + options = { title: emoji_info['description'], data: data }.merge(options) - ActionController::Base.helpers.content_tag('gl-emoji', emoji_info['moji'], title: emoji_info['description'], data: data) + ActionController::Base.helpers.content_tag('gl-emoji', emoji_info['moji'], options) end private |