Rename messages#read to #show

Also rename the named path, to align with resourceful routing
This commit is contained in:
Andy Allan 2018-05-15 18:25:54 +08:00
parent 73df8447e3
commit 4ec70f7994
8 changed files with 21 additions and 21 deletions

View file

@ -1107,7 +1107,7 @@ en:
people_mapping_nearby: "people mapping nearby"
reply:
wrong_user: "You are logged in as `%{user}' but the message you have asked to reply to was not sent to that user. Please login as the correct user in order to reply."
read:
show:
title: "Read message"
from: "From"
subject: "Subject"

View file

@ -264,7 +264,7 @@ OpenStreetMap::Application.routes.draw do
get "/user/:display_name/inbox" => "messages#inbox", :as => "inbox"
get "/user/:display_name/outbox" => "messages#outbox", :as => "outbox"
match "/message/new/:display_name" => "messages#new", :via => [:get, :post], :as => "new_message"
get "/message/read/:message_id" => "messages#read", :as => "read_message"
get "/message/read/:message_id" => "messages#show", :as => "message"
post "/message/mark/:message_id" => "messages#mark", :as => "mark_message"
get "/message/reply/:message_id" => "messages#reply", :as => "reply_message"
post "/message/delete/:message_id" => "messages#destroy", :as => "destroy_message"