Show detailled statistics per platform

This commit is contained in:
Michael 2022-02-07 06:11:37 +00:00
commit bdba75ec47
3 changed files with 57 additions and 7 deletions

View file

@ -10,7 +10,7 @@
<ul>
{{foreach $counts as $c}}
{{if $c[0]['total'] > 0}}
<li>{{$c[0]['platform']}} ({{$c[0]['total']}} &bull; {{$c[0]['month']}} &bull; {{$c[0]['halfyear']}} &bull; {{$c[0]['users']}})</li>
<li>{{$c[0]['platform']}} ({{$c[0]['total']}}/{{$c[0]['users']}})</li>
{{/if}}
{{/foreach}}
</ul>
@ -60,6 +60,17 @@
<th><strong>{{$c[0]['total']}}</strong></td>
<td>{{$c[0]['network']}}</td>
</tr>
<tr>
<td colspan="3" class="federation-summary">
<ul>
{{if $c[0]['month']}}<li>{{$c[0]['monthlbl']}}</li>{{/if}}
{{if $c[0]['halfyear']}}<li>{{$c[0]['halfyearlbl']}}</li>{{/if}}
{{if $c[0]['users']}}<li>{{$c[0]['userslbl']}}</li>{{/if}}
{{if $c[0]['posts']}}<li>{{$c[0]['postslbl']}}</li>{{/if}}
{{if $c[0]['postsuserlbl']}}<li>{{$c[0]['postsuserlbl']}}</li>{{/if}}
</ul>
</td>
</tr>
<tr>
<td colspan="3" class="federation-data">
<canvas id="{{$c[2]}}Chart" class="federation-network-graph" width="240" height="240"></canvas>