]> git.openstreetmap.org Git - rails.git/blob - app/views/message/outbox.rhtml
Sort the tags for the databrowser output.
[rails.git] / app / views / message / outbox.rhtml
1 <h2>My <%= link_to "inbox", url_for(:controller => "user", :action => "inbox", :id => @user.display_name) %>/outbox</h2>
2
3 <p>You have <%= @user.sent_messages.size %> sent messages
4
5 <% if @user.sent_messages.size > 0 %>
6   <div id="messages">
7     <table class="messages">
8       <tr>
9         <th>To</th>
10         <th>Subject</th>
11         <th>Date</th>
12       </tr>
13       <%= render :partial => "sent_message_summary", :collection => @user.sent_messages %>
14     </table>
15   </div>
16 <% else %>
17           <div id="messages">You have no sent messages yet. Why not get in touch with some of the <%= link_to 'people mapping nearby', :controller => 'user', :action => 'view', :display_name => @user.display_name %>?</div>
18 <% end %>