Skip to content
Snippets Groups Projects
Commit 7b331ee9 authored by Valery Sizov's avatar Valery Sizov Committed by Rubén Dávila
Browse files

Emoji: refactoring

parent 40df385c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -100,6 +100,10 @@ module IssuesHelper
list.join(", ")
end
 
def emoji_list
::AwardEmoji::EMOJI_LIST
end
# Required for Gitlab::Markdown::IssueReferenceFilter
module_function :url_for_issue
end
Loading
Loading
@@ -9,7 +9,7 @@
.dropdown.awards-controls
%a#add-award{"data-toggle" => "dropdown", "data-target" => "#", "href" => "#"} +
%ul.dropdown-menu.awards-menu
- ["100", "blush", "heart", "smile", "rage", "beers", "thumbsup", "disappointed", "ok_hand", "helicopter"].each do |emoji|
- emoji_list.each do |emoji|
%li{"data-emoji" => "#{emoji}"}= image_tag url_to_emoji(emoji), height: "20px", width: "20px"
 
Loading
Loading
class AwardEmoji
EMOJI_LIST = ["+1", "-1", "100", "blush", "heart", "smile", "rage",
"beers", "disappointed", "ok_hand",
"helicopter", "shit", "airplane", "alarm_clock",
"ambulance", "anguished", "two_hearts", "wink"]
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment