Refactor discussion reply
This commit is contained in:
parent
1319373d58
commit
494ae87840
27 changed files with 229 additions and 197 deletions
|
@ -13,10 +13,14 @@ class CommitController < ProjectResourceController
|
|||
@commit = result[:commit]
|
||||
git_not_found! unless @commit
|
||||
|
||||
@suppress_diff = result[:suppress_diff]
|
||||
@note = result[:note]
|
||||
@line_notes = result[:line_notes]
|
||||
@notes_count = result[:notes_count]
|
||||
@suppress_diff = result[:suppress_diff]
|
||||
|
||||
@note = result[:note]
|
||||
@line_notes = result[:line_notes]
|
||||
@notes_count = result[:notes_count]
|
||||
@target_type = :commit
|
||||
@target_id = @commit.id
|
||||
|
||||
@comments_allowed = @reply_allowed = true
|
||||
@comments_target = { noteable_type: 'Commit',
|
||||
noteable_id: @commit.id }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue