Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b0082bec
Commit
b0082bec
authored
May 24, 2016
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get award menu url from gl object.
parent
c697c960
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
app/assets/javascripts/awards_handler.coffee
app/assets/javascripts/awards_handler.coffee
+1
-1
app/views/award_emoji/_awards_block.html.haml
app/views/award_emoji/_awards_block.html.haml
+3
-0
app/views/emoji_awards/_awards_block.html.haml
app/views/emoji_awards/_awards_block.html.haml
+3
-0
No files found.
app/assets/javascripts/awards_handler.coffee
View file @
b0082bec
...
...
@@ -232,7 +232,7 @@ class @AwardsHandler
return
@
createEmoji_
emoji
if
$
(
'.emoji-menu'
).
length
awardMenuUrl
=
$
(
'[data-award-menu-url]'
).
data
'award-menu-url
'
awardMenuUrl
=
gl
.
awardMenuUrl
or
'/emojis
'
@
createEmojiMenu
awardMenuUrl
,
=>
@
createEmoji
emoji
...
...
app/views/award_emoji/_awards_block.html.haml
View file @
b0082bec
...
...
@@ -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"
})
...
...
app/views/emoji_awards/_awards_block.html.haml
View file @
b0082bec
...
...
@@ -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"
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment