Add a view to show diary comments left by a user

This commit is contained in:
Steve Singer 2012-02-25 15:46:11 -05:00 committed by Tom Hughes
parent e45f8855c4
commit 1944372af8
5 changed files with 51 additions and 0 deletions

View file

@ -392,6 +392,10 @@ en:
all:
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"
newer_comments: "Newer Comments"
older_comments: "Older Comments"
export:
start:
area_to_export: "Area to Export"
@ -1662,6 +1666,7 @@ en:
my edits: my edits
my traces: my traces
my settings: my settings
my comments: my comments
oauth settings: oauth settings
blocks on me: blocks on me
blocks by me: blocks by me
@ -1703,6 +1708,7 @@ en:
moderator: "Revoke moderator access"
block_history: "view blocks received"
moderator_history: "view blocks given"
comments: "comments"
create_block: "block this user"
activate_user: "activate this user"
deactivate_user: "deactivate this user"

View file

@ -160,6 +160,8 @@ OpenStreetMap::Application.routes.draw do
match '/user/:display_name/diary/rss' => 'diary_entry#rss', :format => :rss
match '/diary/:language/rss' => 'diary_entry#rss', :format => :rss
match '/diary/rss' => 'diary_entry#rss', :format => :rss
match '/user/:display_name/diary/comments/:page' => 'diary_entry#comments', :page => /\d+/
match '/user/:display_name/diary/comments/' => 'diary_entry#comments'
match '/user/:display_name/diary' => 'diary_entry#list'
match '/diary/:language' => 'diary_entry#list'
match '/diary' => 'diary_entry#list'