diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-05-24 19:34:08 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-05-24 19:34:08 +0300 |
commit | b0082bec7305f9bf4322d8d532807e5607f5655a (patch) | |
tree | 2c01a695c40ae9f1d6fb47cb307e46cf1e24ee64 /app/views/award_emoji | |
parent | c697c9601d921b841fe791c4ea96a68aa6de0001 (diff) | |
download | gitlab-ce-b0082bec7305f9bf4322d8d532807e5607f5655a.tar.gz |
Get award menu url from gl object.
Diffstat (limited to 'app/views/award_emoji')
-rw-r--r-- | app/views/award_emoji/_awards_block.html.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/award_emoji/_awards_block.html.haml b/app/views/award_emoji/_awards_block.html.haml index 86931c70f33..19d1275a926 100644 --- a/app/views/award_emoji/_awards_block.html.haml +++ b/app/views/award_emoji/_awards_block.html.haml @@ -7,6 +7,9 @@ = awards.count - if current_user + :javascript + gl.awardMenuUrl = "#{emojis_path}" + .award-menu-holder.js-award-holder %button.btn.award-control.js-add-award{ type: "button", data: { award_menu_url: emojis_path } } = icon('smile-o', {class: "award-control-icon award-control-icon-normal"}) |