Show wiki comments for all revisions
This commit is contained in:
parent
36efa2042c
commit
04a85f4582
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class NotesController < ApplicationController
|
||||||
when "merge_request"
|
when "merge_request"
|
||||||
then project.merge_requests.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
|
then project.merge_requests.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
|
||||||
when "wiki"
|
when "wiki"
|
||||||
then project.wikis.find(params[:target_id]).notes.order("created_at DESC").limit(20)
|
then project.wikis.reverse.map {|w| w.notes.fresh }.flatten[0..20]
|
||||||
end
|
end
|
||||||
|
|
||||||
@notes = if params[:last_id]
|
@notes = if params[:last_id]
|
||||||
|
|
Loading…
Reference in a new issue