]> git.mxchange.org Git - friendica.git/commitdiff
only show platforms with counts > 0
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 4 Jan 2016 08:54:12 +0000 (09:54 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 15 Jan 2016 17:19:22 +0000 (18:19 +0100)
view/templates/admin_federation.tpl

index 2cc12ad0ae2e01fb9a81503090fce4f46f440c27..cd452c666d5987e82029ef9d3dd92fac8d762db2 100644 (file)
@@ -9,7 +9,9 @@
     <p>{{$legendtext}}
     <ul>
     {{foreach $counts as $c}}
+    {{if $c[0]['count(*)'] > 0}}
     <li>{{$c[0]['platform']}} ({{$c[0]['count(*)']}})</li>
+    {{/if}}
     {{/foreach}}
     </ul>
     </p>
@@ -30,6 +32,7 @@ document.getElementById('FederationLegend').innerHTML = myDoughnutChart.generate
 
 <table style="width: 100%">
 {{foreach $counts as $c}}
+{{if $c[0]['count(*)'] > 0}}
 <tr>
        <th>{{$c[0]['platform']}}</th>
        <th><strong>{{$c[0]['count(*)']}}</strong></td>
@@ -56,5 +59,6 @@ var my{{$c[2]}}DoughnutChart = new Chart(ctx).Doughnut({{$c[2]}}data,
 </ul>
 </td>
 </tr>
+{{/if}}
 {{/foreach}}
 </table>