X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b61e4f77e86fd2535a88b0d3e5aec97809c8ec5e..8de0c9dd225c0b1bcdc20f4054b087569ace8465:/app/views/message/inbox.rhtml?ds=inline diff --git a/app/views/message/inbox.rhtml b/app/views/message/inbox.rhtml index 1c17ae18f..38fe8495b 100644 --- a/app/views/message/inbox.rhtml +++ b/app/views/message/inbox.rhtml @@ -1,30 +1,20 @@ -

My inbox

+

<%= t'message.inbox.my_inbox'%>/<%= link_to t('message.inbox.outbox'), url_for(:controller => "user", :action => "outbox", :id => @user.display_name) %>

-

You have <%= @user.new_messages.size %> new messages and <%= @user.messages.size - @user.new_messages.size %> old messages

+

<%= t'message.inbox.you_have', :new_count => @user.new_messages.size, :old_count => (@user.messages.size - @user.new_messages.size) %>

-<% if (params[:all] and @user.messages.size > 0) or (@user.new_messages.size > 0) %> +<% if @user.messages.size > 0 %>
- - - + + + - <% if params[:all] %> - <%= render :partial => "message_summary", :collection => @user.messages %> - <% else %> - <%= render :partial => "message_summary", :collection => @user.new_messages %> - <% end %> + <%= render :partial => "message_summary", :collection => @user.messages %>
FromSubjectDate<%= t'message.inbox.from' %><%= t'message.inbox.subject' %><%= t'message.inbox.date' %>
-<% end %> - -
- -<% if params[:all] %> - <%= link_to 'Show new messages', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %> <% else %> - <%= link_to 'Show all messages', :controller => 'message', :action => 'inbox', :display_name => @user.display_name, :all => true %> +
<%= t'message.inbox.no_messages_yet', :people_mapping_nearby_link => link_to(t('message.inbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => @user.display_name) %>
<% end %>