move notes login to one controller

This commit is contained in:
Dmitriy Zaporozhets 2012-02-24 09:16:06 +02:00
parent 81092c0198
commit 215a01f63c
15 changed files with 55 additions and 46 deletions

View file

@ -49,7 +49,6 @@ class IssuesController < ApplicationController
end
def show
@notes = @issue.notes.inc_author.order("created_at DESC").limit(20)
@note = @project.notes.new(:noteable => @issue)
@commits = if @issue.branch_name && @project.repo.heads.map(&:name).include?(@issue.branch_name)
@ -61,7 +60,7 @@ class IssuesController < ApplicationController
respond_to do |format|
format.html
format.js { respond_with_notes }
format.js
end
end