aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-05 18:43:35 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-05 18:43:35 +0200
commitb48dc25963553e4596a5ca10a3c823e895fbfd92 (patch)
tree22b0b33a0e121b7815633f3580831966da4b69fb /app/layout
parent76b64a6907e825588a795a567e3c05c3cebcab76 (diff)
parent450df54d81ff270be7cf53e9184dc17979c97582 (diff)
Merge pull request #516 from aledeg/stats
Refactor statistics
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/aside_stats.phtml9
-rw-r--r--app/layout/header.phtml2
2 files changed, 10 insertions, 1 deletions
diff --git a/app/layout/aside_stats.phtml b/app/layout/aside_stats.phtml
new file mode 100644
index 000000000..32a3f5dee
--- /dev/null
+++ b/app/layout/aside_stats.phtml
@@ -0,0 +1,9 @@
+<ul class="nav nav-list aside">
+ <li class="nav-header"><?php echo Minz_Translate::t ('stats'); ?></li>
+ <li class="item<?php echo Minz_Request::actionName () == 'index' ? ' active' : ''; ?>">
+ <a href="<?php echo _url ('stats', 'index'); ?>"><?php echo Minz_Translate::t ('stats_main'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::actionName () == 'idle' ? ' active' : ''; ?>">
+ <a href="<?php echo _url ('stats', 'idle'); ?>"><?php echo Minz_Translate::t ('stats_idle'); ?></a>
+ </li>
+</ul>
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index 3eedc8ea7..46e248ac8 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -76,7 +76,7 @@ if (Minz_Configuration::canLogIn()) {
<li class="separator"></li>
<li class="item"><a href="<?php echo _url ('configure', 'users'); ?>"><?php echo Minz_Translate::t ('users'); ?></a></li>
<li class="separator"></li>
- <li class="item"><a href="<?php echo _url ('index', 'stats'); ?>"><?php echo Minz_Translate::t ('stats'); ?></a></li>
+ <li class="item"><a href="<?php echo _url ('stats', 'index'); ?>"><?php echo Minz_Translate::t ('stats'); ?></a></li>
<li class="item"><a href="<?php echo _url ('index', 'logs'); ?>"><?php echo Minz_Translate::t ('logs'); ?></a></li>
<li class="item"><a href="<?php echo _url ('index', 'about'); ?>"><?php echo Minz_Translate::t ('about'); ?></a></li>
<?php