X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b61e4f77e86fd2535a88b0d3e5aec97809c8ec5e..2c0cd2730c369410a677bcd30e6233534e7fc5ad:/app/views/message/inbox.rhtml diff --git a/app/views/message/inbox.rhtml b/app/views/message/inbox.rhtml index 1c17ae18f..aa20327e3 100644 --- a/app/views/message/inbox.rhtml +++ b/app/views/message/inbox.rhtml @@ -2,7 +2,7 @@

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 %> -<% end %> +
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 %> \ No newline at end of file