]> git.openstreetmap.org Git - rails.git/blob - app/views/message/inbox.html.erb
Be more consistent with 'my' vs 'your' for objects that belong to
[rails.git] / app / views / message / inbox.html.erb
1 <% content_for :heading do %>
2   <h2><%= t'message.inbox.my_inbox'%>/<%= link_to t('message.inbox.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'message.inbox.from' %></th>
12         <th><%= t'message.inbox.subject' %></th>
13         <th><%= t'message.inbox.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'message.inbox.no_messages_yet', :people_mapping_nearby_link => link_to(t('message.inbox.people_mapping_nearby'), user_path(current_user))) %></div>
24 <% end %>