forked from Gitlink/forgeplus
27 lines
944 B
Ruby
27 lines
944 B
Ruby
json.username @user.full_name
|
|
json.real_name @user.real_name
|
|
json.nickname @user.nickname
|
|
json.gender @user.gender
|
|
json.login @user.login
|
|
json.user_id @user.id
|
|
json.image_url url_to_avatar(@user)
|
|
json.admin @user.admin?
|
|
json.is_teacher @user.user_extension&.teacher?
|
|
json.user_identity @user.identity
|
|
json.tidding_count 0
|
|
json.user_phone_binded @user.phone.present?
|
|
json.need_edit_info @user.need_edit_info?
|
|
# json.phone @user.phone
|
|
# json.email @user.mail
|
|
json.profile_completed @user.profile_is_completed?
|
|
json.professional_certification @user.professional_certification
|
|
json.devops_step @user.devops_step
|
|
json.ci_certification @user.ci_certification?
|
|
json.email @user.mail
|
|
json.province @user.province
|
|
json.city @user.city
|
|
json.custom_department @user.custom_department
|
|
json.description @user.description
|
|
json.(@user, :show_email, :show_department, :show_location)
|
|
json.message_unread_total @message_unread_total
|