title = '个人设置'; FontAwesomeAsset::register($this); $this->registerCssFile('@web/css/user-info.css'); $details = IPLocation::getDetails($model->last_login_ip); if (is_null($details)) { echo ''; } ?>
= Html::encode($model->username) ?>
= Html::encode($model->email) ?>
role == 'user') { echo '普通用户'; } elseif ($model->role == 'admin') { echo '管理员'; } else { echo Html::encode($model->role); } ?>
上次登录时间
= Html::encode($model->last_login) ?>
上次登录IP
= Html::encode($model->last_login_ip) ?> (= Html::encode(($details === null) ? '' : ($details->bogon ? ('Bogon IP') : ($details->city . ', ' . $details->country))) ?>)