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
Jérome Perrin
gitlab-ce
Commits
2f6f99d3
Commit
2f6f99d3
authored
Nov 18, 2015
by
Valery Sizov
Committed by
Valery Sizov
Nov 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
award for merge requests[ci skip]
parent
f021bc5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+2
-2
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-1
app/views/votes/_votes_block.html.haml
app/views/votes/_votes_block.html.haml
+3
-7
No files found.
app/assets/stylesheets/pages/issuable.scss
View file @
2f6f99d3
...
@@ -114,8 +114,8 @@
...
@@ -114,8 +114,8 @@
cursor
:
pointer
;
cursor
:
pointer
;
&
.active
{
&
.active
{
border-color
:
rgba
(
79
,
176
,
252
,.
4
);
border-color
:
rgba
(
79
,
176
,
252
,
0
.4
);
background-color
:
rgba
(
79
,
176
,
252
,
.
08
);
background-color
:
rgba
(
79
,
176
,
252
,
0
.1
);
.counter
{
.counter
{
font-weight
:
bold
;
font-weight
:
bold
;
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
2f6f99d3
...
@@ -254,7 +254,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
...
@@ -254,7 +254,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
# Build a note object for comment form
# Build a note object for comment form
@note
=
@project
.
notes
.
new
(
noteable:
@merge_request
)
@note
=
@project
.
notes
.
new
(
noteable:
@merge_request
)
@notes
=
@merge_request
.
nonawards
.
mr_and_commit_note
s
.
inc_author
.
fresh
@notes
=
@merge_request
.
mr_and_commit_notes
.
nonaward
s
.
inc_author
.
fresh
@discussions
=
Note
.
discussions_from_notes
(
@notes
)
@discussions
=
Note
.
discussions_from_notes
(
@notes
)
@noteable
=
@merge_request
@noteable
=
@merge_request
...
...
app/views/votes/_votes_block.html.haml
View file @
2f6f99d3
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
:coffeescript
:coffeescript
post_emoji_url = "
#{
award_toggle_namespace_project_notes_path
(
@project
.
namespace
,
@project
)
}
"
post_emoji_url = "
#{
award_toggle_namespace_project_notes_path
(
@project
.
namespace
,
@project
)
}
"
noteable_type =
"Issue"
noteable_type =
#{
votable
}
noteable_id =
#{
@issu
e
.
id
}
noteable_id =
#{
votabl
e
.
id
}
window.awards_handler = new AwardsHandler(post_emoji_url, noteable_type, noteable_id)
window.awards_handler = new AwardsHandler(post_emoji_url, noteable_type, noteable_id)
$ ->
$ ->
...
@@ -28,8 +28,4 @@
...
@@ -28,8 +28,4 @@
emoji = $(this).find(".icon").data("emoji")
emoji = $(this).find(".icon").data("emoji")
awards_handler.addAward(emoji)
awards_handler.addAward(emoji)
$(".award").tooltip()
$(".award").tooltip()
\ No newline at end of file
\ No newline at end of file
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