Add the ability for a recipient to (logically) delete a message from

their INBOX so they no longer see it.
This commit is contained in:
Tom Hughes 2009-07-23 15:22:44 +00:00
parent 0d97737a7d
commit f3bf0c8b14
7 changed files with 33 additions and 3 deletions

View file

@ -547,6 +547,7 @@ en:
unread_button: "Mark as unread"
read_button: "Mark as read"
reply_button: "Reply"
delete_button: "Delete"
new:
title: "Send message"
send_message_to: "Send a new message to {{name}}"
@ -585,6 +586,8 @@ en:
mark:
as_read: "Message marked as read"
as_unread: "Message marked as unread"
delete:
deleted: "Message deleted"
site:
index:
js_1: "You are either using a browser that doesn't support javascript, or you have disabled javascript."

View file

@ -194,6 +194,7 @@ ActionController::Routing::Routes.draw do |map|
map.connect '/message/read/:message_id', :controller => 'message', :action => 'read'
map.connect '/message/mark/:message_id', :controller => 'message', :action => 'mark'
map.connect '/message/reply/:message_id', :controller => 'message', :action => 'reply'
map.connect '/message/delete/:message_id', :controller => 'message', :action => 'delete'
# fall through
map.connect ':controller/:id/:action'