A free, self-hostable news aggregator…
Add percent of total on top 10 feeds
Alexis Degrugillier3d288eb17009
diff --git a/app/i18n/en.php b/app/i18n/en.phpindex beba02c4d..0d3654744 100644--- a/app/i18n/en.php+++ b/app/i18n/en.php@@ -56,6 +56,7 @@ return array ('stats_entry_per_hour' => 'Per hour','stats_entry_per_day_of_week' => 'Per day of week','stats_entry_per_month' => 'Per month',+ 'stats_percent_of_total' => '%% of total','last_week' => 'Last week','last_month' => 'Last month',diff --git a/app/i18n/fr.php b/app/i18n/fr.phpindex b0fbf15ae..c72fc3e93 100644--- a/app/i18n/fr.php+++ b/app/i18n/fr.php@@ -56,6 +56,7 @@ return array ('stats_entry_per_hour' => 'Par heure','stats_entry_per_day_of_week' => 'Par jour de la semaine','stats_entry_per_month' => 'Par mois',+ 'stats_percent_of_total' => '%% du total','last_week' => 'Depuis la semaine dernière','last_month' => 'Depuis le mois dernier',diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtmlindex 412e77e16..31185fbe3 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>