]> git.openstreetmap.org Git - rails.git/blob - app/views/messages/inbox.html.erb
Merge remote-tracking branch 'upstream/pull/3257'
[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_class, "pb-0" %>
6
7 <% content_for :heading do %>
8   <h1><%= t("users.show.my messages") %></h1>
9   <ul class="nav nav-tabs">
10     <li class="nav-item">
11       <a class="nav-link active"><%= t ".my_inbox" %></a>
12     </li>
13     <li class="nav-item">
14       <%= link_to t(".my_outbox"), outbox_messages_path, :class => "nav-link" %>
15     </li>
16   </ul>
17 <% end %>
18
19   <h4><%= render :partial => "message_count" %></h4>
20
21 <% if current_user.messages.size > 0 %>
22   <table class="table table-sm">
23     <thead>
24       <tr>
25         <th><%= t ".from" %></th>
26         <th><%= t ".subject" %></th>
27         <th><%= t ".date" %></th>
28         <th></th>
29         <th></th>
30       </tr>
31     </thead>
32     <tbody>
33         <%= render :partial => "message_summary", :collection => current_user.messages %>
34     </tbody>
35   </table>
36 <% else %>
37   <div><%= t(".no_messages_yet_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %></div>
38 <% end %>