aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/helpers/view/normal_view.phtml9
-rw-r--r--app/views/stats/index.phtml18
-rw-r--r--app/views/stats/repartition.phtml6
3 files changed, 23 insertions, 10 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml
index 1dbf14f4c..6d9789f8d 100644
--- a/app/views/helpers/view/normal_view.phtml
+++ b/app/views/helpers/view/normal_view.phtml
@@ -153,14 +153,15 @@ if (!empty($this->entries)) {
if (!empty($tags)) {
?><li class="item">
<div class="dropdown">
- <div id="dropdown-tags-<?php echo $item->id ();?>" class="dropdown-target"></div>
- <a class="dropdown-toggle" href="#dropdown-tags-<?php echo $item->id ();?>"><?php
- echo FreshRSS_Themes::icon('tag'), Minz_Translate::t ('related_tags');
+ <div id="dropdown-tags-<?php echo $item->id();?>" class="dropdown-target"></div>
+ <?php echo _i('tag'); ?>
+ <a class="dropdown-toggle" href="#dropdown-tags-<?php echo $item->id();?>"><?php
+ echo _t('related_tags');
?></a>
<ul class="dropdown-menu">
<li class="dropdown-close"><a href="#close">❌</a></li><?php
foreach($tags as $tag) {
- ?><li class="item"><a href="<?php echo _url ('index', 'index', 'search', urlencode ('#' . $tag)); ?>"><?php echo $tag; ?></a></li><?php
+ ?><li class="item"><a href="<?php echo _url('index', 'index', 'search', urlencode('#' . $tag)); ?>"><?php echo $tag; ?></a></li><?php
} ?>
</ul>
</div>
diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml
index 412e77e16..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>
@@ -91,12 +93,22 @@ function initStats() {
return;
}
// Entry per day
+ var avg = [];
+ for (var i = -31; i <= 0; i++) {
+ avg.push([i, <?php echo $this->average?>]);
+ }
Flotr.draw(document.getElementById('statsEntryPerDay'),
- [<?php echo $this->count ?>],
+ [{
+ data: <?php echo $this->count ?>,
+ bars: {horizontal: false, show: true}
+ },{
+ data: avg,
+ lines: {show: true},
+ label: "<?php echo $this->average?>"
+ }],
{
grid: {verticalLines: false},
- bars: {horizontal: false, show: true},
- xaxis: {noTicks: 6, showLabels: false, tickDecimals: 0},
+ xaxis: {noTicks: 6, showLabels: false, tickDecimals: 0, min: -30.75, max: -0.25},
yaxis: {min: 0},
mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return numberFormat(obj.y);}}
});
diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml
index b425c1458..750a3ffdc 100644
--- a/app/views/stats/repartition.phtml
+++ b/app/views/stats/repartition.phtml
@@ -67,7 +67,7 @@ function initStats() {
}, {
data: avg_h,
lines: {show: true},
- label: <?php echo $this->averageHour?>,
+ label: "<?php echo $this->averageHour?>",
yaxis: 2
}],
{
@@ -96,7 +96,7 @@ function initStats() {
}, {
data: avg_dow,
lines: {show: true},
- label: <?php echo $this->averageDayOfWeek?>,
+ label: "<?php echo $this->averageDayOfWeek?>",
yaxis: 2
}],
{
@@ -126,7 +126,7 @@ function initStats() {
}, {
data: avg_m,
lines: {show: true},
- label: <?php echo $this->averageMonth?>,
+ label: "<?php echo $this->averageMonth?>",
yaxis: 2
}],
{