summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-05-24 19:34:08 +0300
committerFatih Acet <acetfatih@gmail.com>2016-05-24 19:34:08 +0300
commitb0082bec7305f9bf4322d8d532807e5607f5655a (patch)
tree2c01a695c40ae9f1d6fb47cb307e46cf1e24ee64 /app/views
parentc697c9601d921b841fe791c4ea96a68aa6de0001 (diff)
downloadgitlab-ce-b0082bec7305f9bf4322d8d532807e5607f5655a.tar.gz
Get award menu url from gl object.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/award_emoji/_awards_block.html.haml3
-rw-r--r--app/views/emoji_awards/_awards_block.html.haml3
2 files changed, 6 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"})
diff --git a/app/views/emoji_awards/_awards_block.html.haml b/app/views/emoji_awards/_awards_block.html.haml
index 1b840d88752..e9b286b7c3f 100644
--- a/app/views/emoji_awards/_awards_block.html.haml
+++ b/app/views/emoji_awards/_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"})