notes count for wall
This commit is contained in:
parent
8470d70da6
commit
cd5c4bac50
|
@ -46,7 +46,7 @@ class NotesController < ApplicationController
|
||||||
when "snippet"
|
when "snippet"
|
||||||
then project.snippets.find(params[:target_id]).notes
|
then project.snippets.find(params[:target_id]).notes
|
||||||
when "wall"
|
when "wall"
|
||||||
then project.common_notes.order("created_at DESC").fresh.limit(10)
|
then project.common_notes.order("created_at DESC").fresh.limit(50)
|
||||||
when "issue"
|
when "issue"
|
||||||
then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
|
then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
|
||||||
when "merge_request"
|
when "merge_request"
|
||||||
|
|
Loading…
Reference in a new issue