4179_show_login_attribute_in_user_page_v2.patch

Marius BALTEANU, 2017-05-13 17:35

Download (553 Bytes)

View differences:

app/views/users/show.html.erb
6 6

  
7 7
<div class="splitcontentleft">
8 8
<ul>
9
  <% if User.current.admin? %>
10
    <li><%=l(:field_login)%>: <%= @user.login %></li>
11
  <% end %>
9
  <li><%=l(:field_login)%>: <%= @user.login %></li>
12 10
  <% unless @user.pref.hide_mail %>
13 11
    <li><%=l(:field_mail)%>: <%= mail_to(@user.mail, nil, :encode => 'javascript') %></li>
14 12
  <% end %>