From: Tom Hughes Date: Fri, 9 Oct 2009 15:45:01 +0000 (+0000) Subject: Display user's email addresses and the IP address used to create X-Git-Tag: live~6556 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/921c150b631a9aae5ddff678f3b9368f68f5190e?ds=sidebyside Display user's email addresses and the IP address used to create their account to people that are logged in as administrators. --- 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