X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/44bf1d91a1ccca686f1d45ddb817d85fe3bdba9e..a424b6282f1587eb02f2add29b85958a86fc79c1:/app/views/user/view.rhtml diff --git a/app/views/user/view.rhtml b/app/views/user/view.rhtml index 65999abaa..15176f375 100644 --- a/app/views/user/view.rhtml +++ b/app/views/user/view.rhtml @@ -1,73 +1,45 @@
You have <%=@user.get_new_messages.length %> new messages and <%=@user.get_all_messages.length - @user.get_new_messages.length %> old messages:
- -You have no messages.
-<%end%> +<% else %> +<%= link_to 'Send message', :controller => 'message', :action => 'new', :user_id => @this_user.id %><%= link_to nearby.display_name, :controller => 'user', :action => 'view', :display_name => nearby.display_name %> | +<%= @this_user.distance(nearby).round %>km away | + +
<%= params[:display_name] %> says:
-<%= simple_format(@this_user.description) %> - -