X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b61e4f77e86fd2535a88b0d3e5aec97809c8ec5e..97cb1fd7fa2916974538fde2a6ea311a3f793989:/app/views/message/inbox.rhtml?ds=sidebyside diff --git a/app/views/message/inbox.rhtml b/app/views/message/inbox.rhtml index 1c17ae18f..2a64f2774 100644 --- a/app/views/message/inbox.rhtml +++ b/app/views/message/inbox.rhtml @@ -1,8 +1,8 @@ -

My inbox

+

My inbox/<%= link_to "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

-<% if (params[:all] and @user.messages.size > 0) or (@user.new_messages.size > 0) %> +<% if @user.messages.size > 0 %>
@@ -12,19 +12,9 @@ - <% 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 %>
-<% 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 %> +
You have no messages yet. Why not get in touch with some of the <%= link_to 'people mapping nearby', :controller => 'user', :action => 'view', :display_name => @user.display_name %>?
<% end %>