Add a user link to the heading of the diary comments page

Fixes #3369

This makes the heading match the layout of the user's Notes page,
which also has a short heading and a subheading with a link.

Additionally, add a page title, again for consistency
This commit is contained in:
Andy Allan 2021-11-24 10:51:58 +00:00
parent abbd5a30d4
commit 18c70fa2de
3 changed files with 7 additions and 2 deletions

View file

@ -235,6 +235,8 @@ class DiaryEntriesController < ApplicationController
end
def comments
@title = t ".title", :user => @user.display_name
conditions = { :user_id => @user }
conditions[:visible] = true unless can? :unhidecomment, DiaryEntry