]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/message/read.html.erb
Add delete button to message view
[rails.git] / app / views / message / read.html.erb
index 0c9b622e8e11a393e0e9505156f924dfcc4b3e40..65f429dafcc8a4062fc1ea7922779bd7c824af81 100644 (file)
@@ -16,6 +16,7 @@
   <div class='message-buttons buttons'>
     <%= button_to t('message.read.reply_button'), {:controller => 'message', :action => 'reply', :message_id => @message.id}, :class => 'reply-button' %>
     <%= button_to t('message.read.unread_button'), {:controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread'}, :class => 'mark-unread-button' %>
+    <%= button_to "Delete", {:controller => 'message', :action => 'delete', :message_id => @message.id}, :class => 'delete-button' %>
 
 <% else %>