From bc5e0bf2c31af6fcf44fb430763f329a8745f5f4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 9 Dec 2011 09:21:37 +0000 Subject: [PATCH 1/1] Don't try and show the IP address when there isn't one --- app/views/user/view.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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' %>

-- 2.45.1