aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-20 11:54:31 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-20 11:54:31 +0200
commit7080a32650ab8b19e917d8add944a75cc98381bc (patch)
treea06593be4c12fcb21566c0d249af3ee63d8429df /app/layout
parent3bad4d138e5c4a86aa3f88dea3787c3335861ce4 (diff)
Add checking installation feature
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/aside_configure.phtml7
-rw-r--r--app/layout/header.phtml1
2 files changed, 7 insertions, 1 deletions
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml
index 20446c877..32dc19a4e 100644
--- a/app/layout/aside_configure.phtml
+++ b/app/layout/aside_configure.phtml
@@ -31,7 +31,12 @@
<li class="item<?php echo Minz_Request::controllerName() === 'auth' ? ' active' : ''; ?>">
<a href="<?php echo _url('auth', 'index'); ?>"><?php echo _t('gen.menu.authentication'); ?></a>
</li>
- <li class="item<?php echo Minz_Request::controllerName() === 'update' ? ' active' : ''; ?>">
+ <li class="item<?php echo Minz_Request::controllerName() === 'update' &&
+ Minz_Request::actionName() === 'checkInstall' ? ' active' : ''; ?>">
+ <a href="<?php echo _url('update', 'checkInstall'); ?>"><?php echo _t('gen.menu.check_install'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::controllerName() === 'update' &&
+ Minz_Request::actionName() === 'index' ? ' active' : ''; ?>">
<a href="<?php echo _url('update', 'index'); ?>"><?php echo _t('update'); ?></a>
</li>
<?php } ?>
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index e848ac4eb..506cec175 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -68,6 +68,7 @@ if (Minz_Configuration::canLogIn()) {
<li class="dropdown-header"><?php echo _t('gen.menu.admin'); ?></li>
<li class="item"><a href="<?php echo _url('user', 'manage'); ?>"><?php echo _t('gen.menu.manage_users'); ?></a></li>
<li class="item"><a href="<?php echo _url('auth', 'index'); ?>"><?php echo _t('gen.menu.authentication'); ?></a></li>
+ <li class="item"><a href="<?php echo _url('update', 'checkInstall'); ?>"><?php echo _t('gen.menu.check_install'); ?></a></li>
<li class="item"><a href="<?php echo _url('update', 'index'); ?>"><?php echo _t('update'); ?></a></li>
<?php } ?>
<li class="separator"></li>