BigW Consortium Gitlab

Commit cd5c4bac by Dmitriy Zaporozhets

notes count for wall

parent 8470d70d
...@@ -46,7 +46,7 @@ class NotesController < ApplicationController ...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment