Merge remote-tracking branch 'upstream/pull/5536'
This commit is contained in:
commit
6ef11b2c9a
12 changed files with 286 additions and 140 deletions
|
@ -1782,14 +1782,17 @@ en:
|
|||
destroy_button: "Delete"
|
||||
back: "Back"
|
||||
wrong_user: "You are logged in as '%{user}' but the message you have asked to read was not sent by or to that user. Please log in as the correct user in order to read it."
|
||||
mark:
|
||||
as_read: "Message marked as read"
|
||||
as_unread: "Message marked as unread"
|
||||
unmute:
|
||||
notice: "Message has been moved to Inbox"
|
||||
error: "The message could not be moved to the Inbox."
|
||||
destroy:
|
||||
destroyed: "Message deleted"
|
||||
read_marks:
|
||||
create:
|
||||
notice: "Message marked as read"
|
||||
destroy:
|
||||
notice: "Message marked as unread"
|
||||
mutes:
|
||||
destroy:
|
||||
notice: "Message has been moved to Inbox"
|
||||
error: "The message could not be moved to the Inbox."
|
||||
mailboxes:
|
||||
heading:
|
||||
my_inbox: "My Inbox"
|
||||
|
|
|
@ -322,10 +322,11 @@ OpenStreetMap::Application.routes.draw do
|
|||
|
||||
# messages
|
||||
resources :messages, :path_names => { :new => "new/:display_name" }, :id => /\d+/, :only => [:new, :create, :show, :destroy] do
|
||||
post :mark
|
||||
patch :unmute
|
||||
|
||||
resource :reply, :module => :messages, :path_names => { :new => "new" }, :only => :new
|
||||
scope :module => :messages do
|
||||
resource :reply, :path_names => { :new => "new" }, :only => :new
|
||||
resource :read_mark, :only => [:create, :destroy]
|
||||
resource :mute, :only => :destroy
|
||||
end
|
||||
end
|
||||
namespace :messages, :path => "/messages" do
|
||||
resource :inbox, :only => :show
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue