summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-11-08 09:26:01 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-11-08 09:26:01 -0500
commit38cf7a109ee80cc03edfd420b641676ecd1dfae6 (patch)
treedf515ad723d4905aeaa49374c260da9ae06feb53 /app/views
parent0b7af8f8719f698b67e31b5a84fa19b0f20c0590 (diff)
Add more info in article repartition page
I added the same information than on the main stat page (total, read, unread and favorite) on the repartition page. Some refactoring was needed.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/stats/repartition.phtml17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml
index 32268a546..85a750bd0 100644
--- a/app/views/stats/repartition.phtml
+++ b/app/views/stats/repartition.phtml
@@ -30,6 +30,23 @@
<?php }?>
<div class="stat">
+ <table>
+ <tr>
+ <th><?php echo _t('status_total'); ?></th>
+ <th><?php echo _t('status_read'); ?></th>
+ <th><?php echo _t('status_unread'); ?></th>
+ <th><?php echo _t('status_favorites'); ?></th>
+ </tr>
+ <tr>
+ <td><?php echo $this->repartition['total']; ?></td>
+ <td><?php echo $this->repartition['read']; ?></td>
+ <td><?php echo $this->repartition['unread']; ?></td>
+ <td><?php echo $this->repartition['favorite']; ?></td>
+ </tr>
+ </table>
+ </div>
+
+ <div class="stat">
<h2><?php echo _t('stats_entry_per_hour', $this->averageHour); ?></h2>
<div id="statsEntryPerHour" style="height: 300px"></div>
</div>