aboutsummaryrefslogtreecommitdiff
path: root/app/layout/aside_stats.phtml
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-06-13 01:00:27 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-06-15 12:05:21 -0400
commit181fcd98893f65a2c5159158fbfc022b4661ea13 (patch)
tree62769146e342a71e3f3f5b49232061a613e23f4c /app/layout/aside_stats.phtml
parent09602acc5f754c3e814b4b7de9d9d4d283ed45ff (diff)
Refactor statistics
I made a new controller to handle statistics. The old statistics have been moved in that controller and a new action has been added to display idle feeds. I also added a menu in the left panel to navigate between the statistics pages. See #90
Diffstat (limited to 'app/layout/aside_stats.phtml')
-rw-r--r--app/layout/aside_stats.phtml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/layout/aside_stats.phtml b/app/layout/aside_stats.phtml
new file mode 100644
index 000000000..bc1e85592
--- /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 () == 'main' ? ' active' : ''; ?>">
+ <a href="<?php echo _url ('stats', 'main'); ?>"><?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>