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
Léo-Paul Géneau
gitlab-ce
Commits
4d6c51e2
Commit
4d6c51e2
authored
May 19, 2016
by
ZJ van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix backend merge mistakes
[ci skip]
parent
b40afae6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-1
app/models/note.rb
app/models/note.rb
+1
-1
app/views/projects/notes/_note.html.haml
app/views/projects/notes/_note.html.haml
+0
-2
No files found.
app/controllers/projects/merge_requests_controller.rb
View file @
4d6c51e2
...
...
@@ -303,7 +303,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
# Build a note object for comment form
@note
=
@project
.
notes
.
new
(
noteable:
@merge_request
)
@notes
=
@merge_request
.
mr_and_commit_notes
.
inc_author
.
fresh
@discussions
=
Note
.
discussions_from_notes
(
@notes
)
@discussions
=
@notes
.
discussions
@noteable
=
@merge_request
# Get commits from repository
...
...
app/models/note.rb
View file @
4d6c51e2
...
...
@@ -193,7 +193,7 @@ class Note < ActiveRecord::Base
end
def
award_emoji_supported?
noteable
.
is_a?
(
Awardable
)
&&
!
for_diff_line
?
noteable
.
is_a?
(
Awardable
)
&&
!
line_code
.
present
?
end
def
contains_emoji_only?
...
...
app/views/projects/notes/_note.html.haml
View file @
4d6c51e2
...
...
@@ -38,8 +38,6 @@
=
markdown
(
note
.
note
,
pipeline: :note
,
cache_key:
[
note
,
"note"
])
-
if
note_editable
=
render
'projects/notes/edit_form'
,
note:
note
.note-awards
=
render
'emoji_awards/awards_block'
,
awardable:
note
,
inline:
false
=
edited_time_ago_with_tooltip
(
note
,
placement:
'bottom'
,
html_class:
'note_edited_ago'
,
include_author:
true
)
-
if
note
.
attachment
.
url
...
...
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