end
def comments
+ @title = t ".title", :user => @user.display_name
+
conditions = { :user_id => @user }
conditions[:visible] = true unless can? :unhidecomment, DiaryEntry
<% content_for :heading do %>
- <h1><%= t(".has_commented_on", :display_name => @user.display_name) %></h1>
+ <h1><%= t ".heading", :user => @user.display_name %></h1>
+ <p><%= t ".subheading_html", :user => link_to(@user.display_name, user_path(@user)) %></p>
<% end %>
<% if @comments.empty? %>
title: "OpenStreetMap diary entries"
description: "Recent diary entries from users of OpenStreetMap"
comments:
- has_commented_on: "%{display_name} has commented on the following diary entries"
+ title: "Diary Comments added by %{user}"
+ heading: "%{user}'s Diary Comments"
+ subheading_html: "Diary Comments added by %{user}"
no_comments: "No diary comments"
post: Post
when: When