Feature #17354

User detail : show user login to admins

Added by Jérôme BATAILLE about 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:UI
Target version:3.0.0
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 -%>

Associated revisions

Revision 13763
Added by Jean-Philippe Lang over 3 years ago

User detail : show user login to admins (#17354).

Patch by Jérôme BATAILLE.

History

#2 Updated by Mischa The Evil almost 4 years ago

  • Target version set to Unplanned

Small, simple and effective...

#3 Updated by Jean-Philippe Lang over 3 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version changed from Unplanned to 3.0.0
  • Resolution set to Fixed

Committed in r13763, thanks.

#4 Updated by Jérôme BATAILLE over 3 years ago

Thanks a lot !

Also available in: Atom PDF