From: Tobias Diekershoff Date: Mon, 4 Jan 2016 08:54:12 +0000 (+0100) Subject: only show platforms with counts > 0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5099f43c423909e257f601186b0f6697f9d4a928;p=friendica.git only show platforms with counts > 0 --- diff --git a/view/templates/admin_federation.tpl b/view/templates/admin_federation.tpl index 2cc12ad0ae..cd452c666d 100644 --- a/view/templates/admin_federation.tpl +++ b/view/templates/admin_federation.tpl @@ -9,7 +9,9 @@

{{$legendtext}}

@@ -30,6 +32,7 @@ document.getElementById('FederationLegend').innerHTML = myDoughnutChart.generate {{foreach $counts as $c}} +{{if $c[0]['count(*)'] > 0}} +{{/if}} {{/foreach}}
{{$c[0]['platform']}} {{$c[0]['count(*)']}} @@ -56,5 +59,6 @@ var my{{$c[2]}}DoughnutChart = new Chart(ctx).Doughnut({{$c[2]}}data,