昵称
<%= @user.nickname %> <%#= @user.user_extensions.try(:location) %><%#= @user.user_extensions.try(:location_city) %>
手机账号
<% if @user.phone.blank? %>未绑定
<% else %>可以使用手机<%= @user.user_phone %>登录 <% if @user.mail.blank? %> 解绑 <% else %> 解绑 <% end %>
<% end %>实名信息
<% apply_auth = ApplyUserAuthentication.where(:user_id => @user.id, :auth_type => 1).last %><%= @user.lastname.blank? ? "--" : @user.lastname %> <% unless @user.lastname.blank? %> type="checkbox"/> <% end %>
<%= @user.authentication || (apply_auth && apply_auth.status == 0) ? "查看" : "修改" %>
职业信息
<% apply_auth = ApplyUserAuthentication.where(:user_id => @user.id, :auth_type => 2).last %><%= @user.user_extensions.school ? @user.user_extensions.school.try(:name) : '--' %> <%= @user.user_extensions.show_identity.blank? ? "--" : @user.user_extensions.show_identity %> <%= @user.user_extensions.user_technical_title.blank? ? "--" : @user.user_extensions.user_technical_title %>
<%= @user.professional_certification || (apply_auth && apply_auth.status == 0) ? "查看" : "修改" %>