summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-09-29 18:26:28 -0400
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-09 16:00:33 +0200
commit8a09958281e7a4352c86d5734cbc9c6dc90b3c96 (patch)
treeebffb5f6fbd1d51b6c8a5fbc158f54030f5b2970 /app/views
parent57d4914bf81f3380fe55fa06b7b312f1c463e3e3 (diff)
Add percent of total on top 10 feeds
Diffstat (limited to 'app/views')
-rw-r--r--app/views/stats/index.phtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml
index 37803f2f9..fa57a77c0 100644
--- a/app/views/stats/index.phtml
+++ b/app/views/stats/index.phtml
@@ -48,6 +48,7 @@
<th><?php echo _t ('feed'); ?></th>
<th><?php echo _t ('category'); ?></th>
<th><?php echo _t ('stats_entry_count'); ?></th>
+ <th><?php echo _t ('stats_percent_of_total'); ?></th>
</tr>
</thead>
<tbody>
@@ -56,6 +57,7 @@
<td><a href="<?php echo _url('stats', 'repartition', 'id', $feed['id']); ?>"><?php echo $feed['name']; ?></a></td>
<td><?php echo $feed['category']; ?></td>
<td class="numeric"><?php echo formatNumber($feed['count']); ?></td>
+ <td class="numeric"><?php echo formatNumber($feed['count'] / $this->repartition['all_feeds']['total'] * 100, 1);?></td>
</tr>
<?php endforeach;?>
</tbody>