Project

General

Profile

Actions

Feature #17354

closed

User detail : show user login to admins

Added by Jérôme BATAILLE over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

It's only necessary to edit app/views/users/show.html.erb

And just after :

  <% unless @user.pref.hide_mail %>
    <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
  <% end %>

Add :

  <% if User.current.admin? %>
    <li><%=l(:field_login)%>: <%= h(@user.login) %></li>
  <% end -%>
Actions

Also available in: Atom PDF