]> git.openstreetmap.org Git - rails.git/blob - app/views/messages/outbox.html.erb
Added natural=atoll to en.yml
[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   <ul class="nav nav-pills">
7     <li class="nav-item">
8       <%= link_to t(".my_inbox"), inbox_messages_path, :class => "nav-link" %>
9     </li>
10     <li class="nav-item">
11       <a class="nav-link active"><%= t ".my_outbox" %></a>
12     </li>
13   </ul>
14 <% end %>
15
16 <h4><%= t ".messages", :count => current_user.sent_messages.size %></h4>
17
18 <% if current_user.sent_messages.size > 0 %>
19   <table class="table table-sm">
20     <thead>
21       <tr>
22         <th><%= t ".to" %></th>
23         <th><%= t ".subject" %></th>
24         <th><%= t ".date" %></th>
25         <th></th>
26       </tr>
27     </thead>
28     <tbody>
29       <%= render :partial => "sent_message_summary", :collection => current_user.sent_messages %>
30     </tbody>
31   </table>
32 <% else %>
33   <div class="messages"><%= t(".no_sent_messages_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %></div>
34 <% end %>