|
|
@ -61,7 +61,7 @@ class UsersController < ApplicationController
|
|
|
|
# 新消息数
|
|
|
|
# 新消息数
|
|
|
|
@new_message = @user.tidings.where("created_at > '#{@user.click_time}'").count > 0 || @user.private_messages.where("created_at > '#{@user.click_time}'").count > 0
|
|
|
|
@new_message = @user.tidings.where("created_at > '#{@user.click_time}'").count > 0 || @user.private_messages.where("created_at > '#{@user.click_time}'").count > 0
|
|
|
|
|
|
|
|
|
|
|
|
@user_url = "#{@old_domain}/users/#{@user.login}"
|
|
|
|
@user_url = "/users/#{@user.login}"
|
|
|
|
@career = Career.where(status: true).order("created_at asc").pluck(:id, :name)
|
|
|
|
@career = Career.where(status: true).order("created_at asc").pluck(:id, :name)
|
|
|
|
ec_user = EcSchoolUser.where(:user_id => current_user.id).first
|
|
|
|
ec_user = EcSchoolUser.where(:user_id => current_user.id).first
|
|
|
|
@auth = ec_user ? "#{@old_domain}/ecs/department?school_id=#{ec_user.school_id}" : nil
|
|
|
|
@auth = ec_user ? "#{@old_domain}/ecs/department?school_id=#{ec_user.school_id}" : nil
|
|
|
|