From b6de0d28303a12c76847f1137e672aa60ae174ac Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Thu, 24 Dec 2015 11:28:51 +0200 Subject: Emoji picker: better alias handling --- app/helpers/issues_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/helpers/issues_helper.rb') diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 2bcde9c2ba3..4fe84322199 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -94,12 +94,13 @@ module IssuesHelper end.sort.to_sentence(last_word_connector: ', or ') end - def emoji_icon(name, unicode = nil) + def emoji_icon(name, unicode = nil, aliases = []) unicode ||= Emoji.emoji_filename(name) content_tag :div, "", class: "icon emoji-icon emoji-#{unicode}", "data-emoji" => name, + "data-aliases" => aliases.join(" "), "data-unicode-name" => unicode end -- cgit v1.2.1