]> git.openstreetmap.org Git - rails.git/blob - app/views/messages/inbox.html.erb
Chasing parse errors
[rails.git] / app / views / messages / inbox.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       <a class="nav-link active"><%= t ".my_inbox" %></a>
9     </li>
10     <li class="nav-item">
11       <%= link_to t(".my_outbox"), outbox_messages_path, :class => "nav-link" %>
12     </li>
13   </ul>
14 <% end %>
15
16   <h4><%= render :partial => "message_count" %></h4>
17
18 <% if current_user.messages.size > 0 %>
19   <table class="table table-sm">
20     <thead>
21       <tr>
22         <th><%= t ".from" %></th>
23         <th><%= t ".subject" %></th>
24         <th><%= t ".date" %></th>
25         <th></th>
26         <th></th>
27       </tr>
28     </thead>
29     <tbody>
30         <%= render :partial => "message_summary", :collection => current_user.messages %>
31     </tbody>
32   </table>
33 <% else %>
34   <div><%= t(".no_messages_yet_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %></div>
35 <% end %>