]> git.openstreetmap.org Git - rails.git/blob - app/views/message/inbox.html.erb
Merge remote-tracking branch 'upstream/pull/1833'
[rails.git] / app / views / message / inbox.html.erb
1 <% content_for :heading do %>
2   <h2><%= t '.my_inbox'%>/<%= link_to t('.outbox'), outbox_path(current_user.display_name) %></h2>
3 <% end %>
4
5   <h4><%= render :partial => "message_count" %></h4>
6
7 <% if current_user.messages.size > 0 %>
8   <table class="messages">
9     <thead>
10       <tr>
11         <th><%= t '.from' %></th>
12         <th><%= t '.subject' %></th>
13         <th><%= t '.date' %></th>
14         <th></th>
15         <th></th>
16       </tr>
17     </thead>
18     <tbody>
19         <%= render :partial => "message_summary", :collection => current_user.messages %>
20     </tbody>
21   </table>
22 <% else %>
23   <div><%= raw(t '.no_messages_yet', :people_mapping_nearby_link => link_to(t('.people_mapping_nearby'), user_path(current_user))) %></div>
24 <% end %>