2 class DiaryCommentsController < CommentsController
4 @title = t ".title", :user => @user.display_name
6 comments = DiaryComment.where(:user => @user)
7 comments = comments.visible unless can? :unhide, DiaryComment
9 @params = params.permit(:display_name, :before, :after)
11 @comments, @newer_comments_id, @older_comments_id = get_page_items(comments, :includes => [:user, :diary_entry])
13 render :partial => "page" if turbo_frame_request_id == "pagination"