Skip to content

Commit 369abf3

Browse files
author
Igor Chepurnoy
committed
update main layout in the admin panel
1 parent d724c79 commit 369abf3

File tree

2 files changed

+16
-37
lines changed

2 files changed

+16
-37
lines changed

modules/admin/controllers/SettingsController.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,4 @@ public function actions()
2121
];
2222
}
2323

24-
/**
25-
* Clear cache
26-
* @return \yii\web\Response
27-
*/
28-
public function actionClearCache()
29-
{
30-
if (\Yii::$app->cache->flush()) {
31-
\Yii::$app->session->setFlash('success', 'Cache has been removed.');
32-
return $this->redirect(\Yii::$app->request->getReferrer());
33-
}
34-
}
35-
3624
}

modules/admin/views/layouts/column2.php

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
'class' => 'navbar-inverse navbar-fixed-top',
4141
],
4242
]);
43-
4443
echo Nav::widget([
4544
'options' => ['class' => 'navbar-nav'],
4645
'encodeLabels' => false,
@@ -59,31 +58,23 @@
5958
]
6059
],
6160
[
62-
'label' => '<i class="glyphicon glyphicon-cog"></i> Settings',
63-
'items' => [
64-
[
65-
'label' => '<i class="glyphicon glyphicon-file"></i> CMS',
66-
'url' => ['/admin/cms/index'],
67-
],
68-
[
69-
'label' => '<i class="glyphicon glyphicon-cog"></i> Cron Schedule Log',
70-
'url' => ['/admin/settings/cron'],
71-
],
72-
[
73-
'label' => '<i class="glyphicon glyphicon-user"></i> RBAC',
74-
'url' => ['/admin/rbac'],
75-
],
76-
[
77-
'label' => '<i class="glyphicon glyphicon-wrench"></i> Settings Storage',
78-
'url' => ['/admin/settings-storage'],
79-
],
80-
[
81-
'label' => '<i class="glyphicon glyphicon-repeat"></i> Clear Cache',
82-
'url' => ['/admin/settings/clear-cache'],
83-
]
84-
]
61+
'label' => '<i class="glyphicon glyphicon-file"></i> CMS',
62+
'url' => ['/admin/cms/index'],
63+
],
64+
[
65+
'label' => '<i class="glyphicon glyphicon-user"></i> RBAC',
66+
'url' => ['/admin/rbac/assignment/index'],
67+
'active' => $this->context->module->id == 'rbac'
68+
],
69+
[
70+
'label' => '<i class="glyphicon glyphicon-wrench"></i> Settings Storage',
71+
'url' => ['/admin/settings-storage'],
72+
'active' => $this->context->module->id == 'settings-storage'
73+
],
74+
[
75+
'label' => '<i class="glyphicon glyphicon-cog"></i> Cron Schedule Log',
76+
'url' => ['/admin/settings/cron'],
8577
],
86-
8778
],
8879
]);
8980

0 commit comments

Comments
 (0)