X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/44bf1d91a1ccca686f1d45ddb817d85fe3bdba9e..1ea57a3bb1c7649f70be3fa1c6d979ce45123ec3:/app/views/user/view.rhtml diff --git a/app/views/user/view.rhtml b/app/views/user/view.rhtml index 65999abaa..3d1707266 100644 --- a/app/views/user/view.rhtml +++ b/app/views/user/view.rhtml @@ -1,7 +1,7 @@

<%= @this_user.display_name %>

<% if @user and @this_user.id == @user.id %>

Messages

-<% if @user.has_messages? %> +<% if !@user.messages.empty? %>

You have <%=@user.get_new_messages.length %> new messages and <%=@user.get_all_messages.length - @user.get_new_messages.length %> old messages: