refactor: remove most header stuff
This commit is contained in:
parent
71d26b9c5f
commit
be788c16e8
|
@ -40,18 +40,6 @@ $this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => Yii
|
||||||
'options' => ['class' => 'navbar-nav'],
|
'options' => ['class' => 'navbar-nav'],
|
||||||
'items' => [
|
'items' => [
|
||||||
['label' => 'Home', 'url' => ['/site/index']],
|
['label' => 'Home', 'url' => ['/site/index']],
|
||||||
['label' => 'About', 'url' => ['/site/about']],
|
|
||||||
['label' => 'Contact', 'url' => ['/site/contact']],
|
|
||||||
Yii::$app->user->isGuest
|
|
||||||
? ['label' => 'Login', 'url' => ['/site/login']]
|
|
||||||
: '<li class="nav-item">'
|
|
||||||
. Html::beginForm(['/site/logout'])
|
|
||||||
. Html::submitButton(
|
|
||||||
'Logout (' . Yii::$app->user->identity->username . ')',
|
|
||||||
['class' => 'nav-link btn btn-link logout']
|
|
||||||
)
|
|
||||||
. Html::endForm()
|
|
||||||
. '</li>'
|
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
NavBar::end();
|
NavBar::end();
|
||||||
|
|
Loading…
Reference in New Issue