move notes login to one controller
This commit is contained in:
parent
81092c0198
commit
215a01f63c
15 changed files with 55 additions and 46 deletions
|
@ -29,16 +29,9 @@ class CommitsController < ApplicationController
|
|||
|
||||
git_not_found! and return unless @commit
|
||||
|
||||
@notes = project.commit_notes(@commit).fresh.limit(20)
|
||||
@note = @project.build_commit_note(@commit)
|
||||
|
||||
@comments_allowed = true
|
||||
@line_notes = project.commit_line_notes(@commit)
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js { respond_with_notes }
|
||||
end
|
||||
end
|
||||
|
||||
def compare
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue