From: Tom Hughes Date: Fri, 9 Dec 2011 09:21:37 +0000 (+0000) Subject: Don't try and show the IP address when there isn't one X-Git-Tag: live~5938 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/bc5e0bf2c31af6fcf44fb430763f329a8745f5f4 Don't try and show the IP address when there isn't one --- diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 15112c2c3..0264065ee 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -78,12 +78,14 @@

<%= t 'user.view.mapper since' %> <%= l @this_user.creation_time, :format => :friendly %> <%= t 'user.view.ago', :time_in_words_ago => time_ago_in_words(@this_user.creation_time) %>

-<% if @user and @user.administrator? %> +<% if @user and @user.administrator? -%>

<%= t 'user.view.email address' %> <%= @this_user.email %>

+ <% unless @this_user.creation_ip.nil? -%>

<%= t 'user.view.created from' %> <%= @this_user.creation_ip %>

+ <% end -%>

<%= t 'user.view.status' %> <%= @this_user.status.capitalize %>

<%= t 'user.view.spam score' %> <%= @this_user.spam_score %>

-<% end %> +<% end -%>

<%= t 'user.view.description' %>