Add RSS feed for global recent changes & changes within a bbox. Solves #1737
This has so much copy/paste code it hurts, the new list*_rss methods are just copies of the old list* methods, but see #1927 for that.
This commit is contained in:
parent
bbc700b9ac
commit
0d16fd57d4
8 changed files with 123 additions and 10 deletions
|
@ -233,6 +233,12 @@ en:
|
|||
recent_changes: "Recent Changes"
|
||||
recently_edited_changesets: "Recently edited changesets:"
|
||||
for_more_changesets: "For more changesets, select a user and view their edits, or see the editing 'history' of a specific area."
|
||||
list_rss:
|
||||
title: "Recent changes"
|
||||
description: "Recently edited changesets"
|
||||
list_bbox_rss:
|
||||
title: "Recent changesets within {{bbox}}"
|
||||
description: "Recently edited changesets within the area {{bbox}}"
|
||||
list_user:
|
||||
edits_by_username: "Edits by {{username_link}}"
|
||||
no_visible_edits_by: "No visible edits by {{name}}."
|
||||
|
|
|
@ -83,12 +83,14 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.connect '/browse/relation/:id/history', :controller => 'browse', :action => 'relation_history', :id => /\d+/
|
||||
map.connect '/browse/changeset/:id', :controller => 'browse', :action => 'changeset', :id => /\d+/
|
||||
map.connect '/browse/changesets', :controller => 'changeset', :action => 'list'
|
||||
map.connect '/browse/changesets/rss', :controller => 'changeset', :action => 'list_rss'
|
||||
|
||||
# web site
|
||||
map.root :controller => 'site', :action => 'index'
|
||||
map.connect '/', :controller => 'site', :action => 'index'
|
||||
map.connect '/edit', :controller => 'site', :action => 'edit'
|
||||
map.connect '/history', :controller => 'changeset', :action => 'list_bbox'
|
||||
map.connect '/history/rss', :controller => 'changeset', :action => 'list_bbox_rss'
|
||||
map.connect '/export', :controller => 'site', :action => 'export'
|
||||
map.connect '/login', :controller => 'user', :action => 'login'
|
||||
map.connect '/logout', :controller => 'user', :action => 'logout'
|
||||
|
@ -143,7 +145,7 @@ ActionController::Routing::Routes.draw do |map|
|
|||
# user pages
|
||||
map.connect '/user/:display_name', :controller => 'user', :action => 'view'
|
||||
map.connect '/user/:display_name/edits', :controller => 'changeset', :action => 'list_user'
|
||||
map.connect '/user/:display_name/edits/rss', :controller => 'changeset', :action => 'rss'
|
||||
map.connect '/user/:display_name/edits/rss', :controller => 'changeset', :action => 'list_user_rss'
|
||||
map.connect '/user/:display_name/make_friend', :controller => 'user', :action => 'make_friend'
|
||||
map.connect '/user/:display_name/remove_friend', :controller => 'user', :action => 'remove_friend'
|
||||
map.connect '/user/:display_name/diary', :controller => 'diary_entry', :action => 'list'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue