--- /dev/null
+module Users
+ class CommentsController < ApplicationController
+ include UserMethods
+ include PaginationMethods
+
+ layout "site"
+
+ before_action :authorize_web
+ before_action :set_locale
+ before_action :check_database_readable
+
+ authorize_resource
+
+ before_action :lookup_user
+
+ allow_thirdparty_images
+ end
+end
module Users
- class DiaryCommentsController < ApplicationController
- include UserMethods
- include PaginationMethods
-
- layout "site"
-
- before_action :authorize_web
- before_action :set_locale
- before_action :check_database_readable
-
- authorize_resource
-
- before_action :lookup_user
-
- allow_thirdparty_images
-
+ class DiaryCommentsController < CommentsController
def index
@title = t ".title", :user => @user.display_name
user:
summary_html: "%{name} created from %{ip_address} on %{date}"
summary_no_ip_html: "%{name} created on %{date}"
- diary_comments:
+ comments:
index:
- title: "Diary Comments added by %{user}"
heading_html: "%{user}'s Comments"
diary_entries: "Diary entries"
no_comments: "No comments"
+ diary_comments:
+ index:
+ title: "Diary Comments added by %{user}"
page:
post: Post
when: When