Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes

  • Loading branch information...
commit b3bf3fc00034b7347900e302e5510ae4747bfc8d 1 parent f854b1d
@swistaczek swistaczek authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/views/admin/users/show.html.erb
View
7 app/views/admin/users/show.html.erb
@@ -42,9 +42,14 @@
<% end -%>
<table class="overview">
- <%= cell t('activerecord.attributes.user.login'), "#{in_place_editor_field :user, 'login'}" %>
+ <% if @user.login.present? %>
+ <%= cell t('activerecord.attributes.user.login'), "#{in_place_editor_field :user, 'login'}" %>
+ <% else %>
+ <%= cell t('activerecord.attributes.user.language'), h(@user.site_name) %>
+ <% end %>
<%= cell "ID", h(@user.id) %>
<%= cell t('activerecord.attributes.user.language'), h(@user.language) %>
+ <%= cell t('activerecord.attributes.user.facebook'), @user.facebook.present? %>
<%= cell t('activerecord.attributes.user.roles'), @user.roles.map{|x| x.name.humanize }.join(", ") %>
Please sign in to comment.
Something went wrong with that request. Please try again.