Create changeset subscription resource
This commit is contained in:
parent
7b19ba580c
commit
84a3a41531
17 changed files with 232 additions and 210 deletions
|
@ -484,18 +484,6 @@ en:
|
|||
created: "Created"
|
||||
closed: "Closed"
|
||||
belongs_to: "Author"
|
||||
subscribe:
|
||||
heading: Subscribe to the following changeset discussion?
|
||||
button: Subscribe to discussion
|
||||
unsubscribe:
|
||||
heading: Unsubscribe from the following changeset discussion?
|
||||
button: Unsubscribe from discussion
|
||||
heading:
|
||||
title: "Changeset %{id}"
|
||||
created_by_html: "Created by %{link_user} on %{created}."
|
||||
no_such_entry:
|
||||
heading: "No entry with the id: %{id}"
|
||||
body: "Sorry, there is no changeset with the id %{id}. Please check your spelling, or maybe the link you clicked is wrong."
|
||||
show:
|
||||
title: "Changeset: %{id}"
|
||||
created: "Created: %{when}"
|
||||
|
@ -527,6 +515,20 @@ en:
|
|||
sorry: "Sorry, changeset #%{id} could not be found."
|
||||
timeout:
|
||||
sorry: "Sorry, the list of changesets you requested took too long to retrieve."
|
||||
changeset_subscriptions:
|
||||
show:
|
||||
subscribe:
|
||||
heading: Subscribe to the following changeset discussion?
|
||||
button: Subscribe to discussion
|
||||
unsubscribe:
|
||||
heading: Unsubscribe from the following changeset discussion?
|
||||
button: Unsubscribe from discussion
|
||||
heading:
|
||||
title: "Changeset %{id}"
|
||||
created_by_html: "Created by %{link_user} on %{created}."
|
||||
no_such_entry:
|
||||
heading: "No entry with the id: %{id}"
|
||||
body: "Sorry, there is no changeset with the id %{id}. Please check your spelling, or maybe the link you clicked is wrong."
|
||||
dashboards:
|
||||
contact:
|
||||
km away: "%{count}km away"
|
||||
|
|
|
@ -124,14 +124,16 @@ OpenStreetMap::Application.routes.draw do
|
|||
get "/relation/:id" => "relations#show", :id => /\d+/, :as => :relation
|
||||
get "/relation/:id/history" => "old_relations#index", :id => /\d+/, :as => :relation_history
|
||||
resources :old_relations, :path => "/relation/:id/history", :id => /\d+/, :version => /\d+/, :param => :version, :only => :show
|
||||
resources :changesets, :path => "changeset", :id => /\d+/, :only => :show do
|
||||
match :subscribe, :on => :member, :via => [:get, :post]
|
||||
match :unsubscribe, :on => :member, :via => [:get, :post]
|
||||
|
||||
resources :changesets, :path => "changeset", :id => /\d+/, :only => :show do
|
||||
resource :subscription, :controller => :changeset_subscriptions, :only => [:show, :create, :destroy]
|
||||
namespace :changeset_comments, :as => :comments, :path => :comments do
|
||||
resource :feed, :only => :show, :defaults => { :format => "rss" }
|
||||
end
|
||||
end
|
||||
get "/changeset/:id/subscribe", :id => /\d+/, :to => redirect(:path => "/changeset/%{id}/subscription")
|
||||
get "/changeset/:id/unsubscribe", :id => /\d+/, :to => redirect(:path => "/changeset/%{id}/subscription")
|
||||
|
||||
resources :notes, :path => "note", :id => /\d+/, :only => [:show, :new]
|
||||
|
||||
get "/user/:display_name/history" => "changesets#index"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue