]> git.openstreetmap.org Git - rails.git/blob - app/views/messages/outbox.html.erb
Merge remote-tracking branch 'upstream/pull/2921' into master
[rails.git] / app / views / messages / outbox.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "messages" %>
3 <% end %>
4
5 <% content_for :heading do %>
6   <h2><%= t(".my_inbox_html", :inbox_link => link_to(t(".inbox"), inbox_messages_path)) %>/<%= t ".outbox" %></h2>
7 <% end %>
8
9 <h4><%= t ".messages", :count => current_user.sent_messages.size %></h4>
10
11 <% if current_user.sent_messages.size > 0 %>
12   <table class="table table-sm">
13     <thead>
14       <tr>
15         <th><%= t ".to" %></th>
16         <th><%= t ".subject" %></th>
17         <th><%= t ".date" %></th>
18         <th></th>
19       </tr>
20     </thead>
21     <tbody>
22       <%= render :partial => "sent_message_summary", :collection => current_user.sent_messages %>
23     </tbody>
24   </table>
25 <% else %>
26   <div class="messages"><%= t(".no_sent_messages_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %></div>
27 <% end %>