]> git.openstreetmap.org Git - rails.git/blob - app/views/message/outbox.rhtml
Revert to using join instead of to_sentence for now as to_sentence is
[rails.git] / app / views / message / outbox.rhtml
1 <h2><%= t'message.outbox.my_inbox', :inbox_link => link_to(t('message.outbox.inbox'), url_for(:controller => "user", :action => "inbox", :id => @user.display_name)) %>/<%= t'message.outbox.outbox' %></h2>
2
3 <p><%= t'message.outbox.you_have_sent_messages', :sent_count => @user.sent_messages.size %>
4
5 <% if @user.sent_messages.size > 0 %>
6   <div id="messages">
7     <table class="messages">
8       <tr>
9         <th><%= t'message.outbox.to' %></th>
10         <th><%= t'message.outbox.subject' %></th>
11         <th><%= t'message.outbox.date' %></th>
12       </tr>
13       <%= render :partial => "sent_message_summary", :collection => @user.sent_messages %>
14     </table>
15   </div>
16 <% else %>
17           <div id="messages"><%= t'message.outbox.no_sent_messages', :people_mapping_nearby_link => link_to(t('message.outbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => @user.display_name) %></div>
18 <% end %>