]> git.openstreetmap.org Git - rails.git/blob - app/views/messages/inbox.html.erb
Merge remote-tracking branch 'upstream/pull/1962'
[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   <h2><%= t '.my_inbox'%>/<%= link_to t('.outbox'), outbox_messages_path %></h2>
7 <% end %>
8
9   <h4><%= render :partial => "message_count" %></h4>
10
11 <% if current_user.messages.size > 0 %>
12   <table class="messages">
13     <thead>
14       <tr>
15         <th><%= t '.from' %></th>
16         <th><%= t '.subject' %></th>
17         <th><%= t '.date' %></th>
18         <th></th>
19         <th></th>
20       </tr>
21     </thead>
22     <tbody>
23         <%= render :partial => "message_summary", :collection => current_user.messages %>
24     </tbody>
25   </table>
26 <% else %>
27   <div><%= raw(t '.no_messages_yet', :people_mapping_nearby_link => link_to(t('.people_mapping_nearby'), user_path(current_user))) %></div>
28 <% end %>