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:
parent
abbd5a30d4
commit
18c70fa2de
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue