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

@ -10,4 +10,5 @@
<td><%= button_to t('message.message_summary.read_button'), :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'read' %></td>
<% end %>
<td><%= button_to t('message.message_summary.reply_button'), :controller => 'message', :action => 'reply', :message_id => message_summary.id %></td>
<td><%= button_to t('message.message_summary.delete_button'), :controller => 'message', :action => 'delete', :message_id => message_summary.id %></td>
</tr>

View file

@ -11,6 +11,7 @@
<th><%= t'message.inbox.date' %></th>
<th></th>
<th></th>
<th></th>
</tr>
<%= render :partial => "message_summary", :collection => @user.messages %>
</table>