Skip to content

Commit daf65ac

Browse files
committed
change main view, delete home, about..., add admin
1 parent f4e8d28 commit daf65ac

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

views/layouts/main.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,7 @@
3838
echo Nav::widget([
3939
'options' => ['class' => 'navbar-nav navbar-right'],
4040
'items' => [
41-
['label' => 'Home', 'url' => ['/site/index']],
42-
['label' => 'About', 'url' => ['/site/about']],
43-
['label' => 'Contact', 'url' => ['/site/contact']],
44-
Yii::$app->user->isGuest ? (
45-
['label' => 'Login', 'url' => ['/site/login']]
46-
) : (
47-
'<li>'
48-
. Html::beginForm(['/site/logout'], 'post')
49-
. Html::submitButton(
50-
'Logout (' . Yii::$app->user->identity->username . ')',
51-
['class' => 'btn btn-link logout']
52-
)
53-
. Html::endForm()
54-
. '</li>'
55-
)
41+
['label' => 'Аккаунт админа', 'url' => ['/user/admin']]
5642
],
5743
]);
5844
NavBar::end();

views/user/admin.php

Whitespace-only changes.

0 commit comments

Comments
 (0)