Fix parameter passing and wording for per line notes
This commit is contained in:
parent
b91d680257
commit
9b919939a3
9 changed files with 27 additions and 12 deletions
|
@ -17,7 +17,9 @@ class CommitController < ProjectResourceController
|
|||
@note = result[:note]
|
||||
@line_notes = result[:line_notes]
|
||||
@notes_count = result[:notes_count]
|
||||
@comments_allowed = true
|
||||
@comments_allowed = @reply_allowed = true
|
||||
@comments_target = { noteable_type: 'Commit',
|
||||
noteable_id: @commit.id }
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
|
|
@ -34,7 +34,9 @@ class MergeRequestsController < ProjectResourceController
|
|||
@diffs = @merge_request.diffs
|
||||
@commit = @merge_request.last_commit
|
||||
|
||||
@comments_allowed = true
|
||||
@comments_allowed = @reply_allowed = true
|
||||
@comments_target = { noteable_type: 'MergeRequest',
|
||||
noteable_id: @merge_request.id }
|
||||
@line_notes = @merge_request.notes.where("line_code is not null")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue