From 921c150b631a9aae5ddff678f3b9368f68f5190e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 9 Oct 2009 15:45:01 +0000 Subject: [PATCH] Display user's email addresses and the IP address used to create their account to people that are logged in as administrators. --- app/views/user/view.html.erb | 11 ++++++----- config/locales/en.yml | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 4a8fde862..107535f00 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -43,12 +43,13 @@ <% end %> -<% if @this_user != nil %> -

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

+

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

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

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

+

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

<% end %> - +

<%= t 'user.view.user image heading' %>

<% if @this_user.image %> <%= image_tag url_for_file_column(@this_user, "image") %> diff --git a/config/locales/en.yml b/config/locales/en.yml index f2c9d7700..f046798ae 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -939,6 +939,8 @@ en: add as friend: add as friend mapper since: "Mapper since:" ago: "({{time_in_words_ago}} ago)" + email address: "Email address:" + created from: "Created from:" user image heading: User image delete image: Delete Image upload an image: Upload an image -- 2.43.2