支持工单功能(4/10)

*前端改进
*导航栏调整位置
*漏了
This commit is contained in:
Chenx221 2024-04-18 15:22:18 +08:00
parent 3a4e552e78
commit 6bf972dfa2
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -75,14 +75,14 @@ $darkMode = Yii::$app->user->isGuest ? 0 : Yii::$app->user->identity->dark_mode;
['label' => '文件保险箱', 'url' => ['/vault/index']], ['label' => '文件保险箱', 'url' => ['/vault/index']],
['label' => '分享管理', 'url' => ['/share/index']], ['label' => '分享管理', 'url' => ['/share/index']],
['label' => '文件收集', 'url' => ['/collection/index']], ['label' => '文件收集', 'url' => ['/collection/index']],
['label' => '个人设置', 'url' => ['/user/info']],
['label' => '工单支持', 'url' => ['/tickets/index']], ['label' => '工单支持', 'url' => ['/tickets/index']],
['label' => '个人设置', 'url' => ['/user/info']],
Yii::$app->user->isGuest Yii::$app->user->isGuest
? ['label' => '登录', 'url' => ['/user/login']] ? ['label' => '登录', 'url' => ['/user/login']]
: '<li class="nav-item">' : '<li class="nav-item">'
. Html::beginForm(['/user/logout']) . Html::beginForm(['/user/logout'])
. Html::submitButton( . Html::submitButton(
'Logout (' . Yii::$app->user->identity->username . ')', '登出账户 (' . Yii::$app->user->identity->username . ')',
['class' => 'nav-link btn btn-link logout'] ['class' => 'nav-link btn btn-link logout']
) )
. Html::endForm() . Html::endForm()