% content_for :head do %>
<%= javascript_include_tag "messages" %>
<% end %>
<% content_for :heading do %>
<%= t '.my_inbox'%>/<%= link_to t('.outbox'), outbox_messages_path %>
<% end %>
<%= render :partial => "message_count" %>
<% if current_user.messages.size > 0 %>
<%= t '.from' %> |
<%= t '.subject' %> |
<%= t '.date' %> |
|
|
<%= render :partial => "message_summary", :collection => current_user.messages %>
<% else %>
<%= raw(t '.no_messages_yet', :people_mapping_nearby_link => link_to(t('.people_mapping_nearby'), user_path(current_user))) %>
<% end %>