From 846153d3886a5506c403ef7e18d96fd01a6a3d01 Mon Sep 17 00:00:00 2001
From: Tobias Diekershoff
Date: Mon, 18 Jan 2016 17:29:46 +0100
Subject: [PATCH] some beautification to the template code
---
view/templates/admin_federation.tpl | 64 ++++++++++++++---------------
1 file changed, 30 insertions(+), 34 deletions(-)
diff --git a/view/templates/admin_federation.tpl b/view/templates/admin_federation.tpl
index fb7515758..fad87da5b 100644
--- a/view/templates/admin_federation.tpl
+++ b/view/templates/admin_federation.tpl
@@ -9,9 +9,9 @@
{{$legendtext}}
{{foreach $counts as $c}}
- {{if $c[0]['total'] > 0}}
- - {{$c[0]['platform']}} ({{$c[0]['total']}})
- {{/if}}
+ {{if $c[0]['total'] > 0}}
+ - {{$c[0]['platform']}} ({{$c[0]['total']}})
+ {{/if}}
{{/foreach}}
@@ -23,40 +23,36 @@ var FedData = [
{{/foreach}}
];
var ctx = document.getElementById("FederationChart").getContext("2d");
-var myDoughnutChart = new Chart(ctx).Doughnut(FedData,
- {
- animateRotate : false,
- });
-document.getElementById('FederationLegend').innerHTML = myDoughnutChart.generateLegend();
+var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false, });
{{foreach $counts as $c}}
-{{if $c[0]['total'] > 0}}
-
- {{$c[0]['platform']}} |
- {{$c[0]['total']}}
- | {{$c[0]['network']}} |
-
-
-
-
-
-
-{{foreach $c[1] as $v}}
-- {{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}{{$v['version']}}{{else}}{{$v['version']}}{{/if}} ({{$v['total']}})
-{{/foreach}}
-
- |
-
-{{/if}}
+ {{if $c[0]['total'] > 0}}
+
+ {{$c[0]['platform']}} |
+ {{$c[0]['total']}}
+ | {{$c[0]['network']}} |
+
+
+
+
+
+
+ {{foreach $c[1] as $v}}
+ - {{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}{{$v['version']}}{{else}}{{$v['version']}}{{/if}} ({{$v['total']}})
+ {{/foreach}}
+
+ |
+
+ {{/if}}
{{/foreach}}