Fixed comments for snippets. Tests fixed
This commit is contained in:
parent
d41d8ffb02
commit
292a41cbe2
7 changed files with 26 additions and 24 deletions
|
@ -13,6 +13,8 @@ class NotesController < ApplicationController
|
|||
@notes = case params[:target_type]
|
||||
when "commit"
|
||||
then project.commit_notes(project.commit((params[:target_id]))).fresh.limit(20)
|
||||
when "snippet"
|
||||
then project.snippets.find(params[:target_id]).notes
|
||||
when "wall"
|
||||
then project.common_notes.order("created_at DESC").fresh.limit(20)
|
||||
when "issue"
|
||||
|
|
|
@ -55,7 +55,6 @@ class SnippetsController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
@notes = @snippet.notes
|
||||
@note = @project.notes.new(:noteable => @snippet)
|
||||
render_full_content
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue