Create received blocks resource
This commit is contained in:
parent
7a4115f090
commit
2df389c97e
11 changed files with 146 additions and 121 deletions
|
@ -2851,6 +2851,11 @@ en:
|
|||
title: "Blocks by %{name}"
|
||||
heading_html: "List of Blocks by %{name}"
|
||||
empty: "%{name} has not made any blocks yet."
|
||||
received_blocks:
|
||||
show:
|
||||
title: "Blocks on %{name}"
|
||||
heading_html: "List of Blocks on %{name}"
|
||||
empty: "%{name} has not been blocked yet."
|
||||
lists:
|
||||
show:
|
||||
title: Users
|
||||
|
@ -2967,10 +2972,6 @@ en:
|
|||
read_html: "read at %{time}"
|
||||
time_in_future_title: "%{time_absolute}; in %{time_relative}"
|
||||
time_in_past_title: "%{time_absolute}; %{time_relative}"
|
||||
blocks_on:
|
||||
title: "Blocks on %{name}"
|
||||
heading_html: "List of Blocks on %{name}"
|
||||
empty: "%{name} has not been blocked yet."
|
||||
show:
|
||||
title: "%{block_on} blocked by %{block_by}"
|
||||
heading_html: "%{block_on} blocked by %{block_by}"
|
||||
|
|
|
@ -273,6 +273,7 @@ OpenStreetMap::Application.routes.draw do
|
|||
resource :role, :controller => "user_roles", :path => "roles/:role", :only => [:create, :destroy]
|
||||
scope :module => :users do
|
||||
resource :issued_blocks, :path => "blocks_by", :only => :show
|
||||
resource :received_blocks, :path => "blocks", :only => :show
|
||||
end
|
||||
end
|
||||
get "/user/:display_name/account", :to => redirect(:path => "/account/edit")
|
||||
|
@ -333,7 +334,6 @@ OpenStreetMap::Application.routes.draw do
|
|||
resources :user_mutes, :only => [:index]
|
||||
|
||||
# banning pages
|
||||
get "/user/:display_name/blocks" => "user_blocks#blocks_on", :as => "user_blocks_on"
|
||||
resources :user_blocks, :path_names => { :new => "new/:display_name" }
|
||||
match "/user/:display_name/blocks/revoke_all" => "user_blocks#revoke_all", :via => [:get, :post], :as => "revoke_all_user_blocks"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue