From 383641f58f509334e7982cee7316939fd2559b3c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 16 Jan 2018 22:50:48 -0500 Subject: [PATCH] Migrate federation page to latest version of Chart.js --- view/global.css | 7 +-- view/templates/admin/federation.tpl | 82 ++++++++++++++++++++++++----- 2 files changed, 69 insertions(+), 20 deletions(-) diff --git a/view/global.css b/view/global.css index f3ca22b75a..2cfd046ca2 100644 --- a/view/global.css +++ b/view/global.css @@ -399,14 +399,9 @@ a { color: #00a700; } .federation-graph { - width: 400px; - height: 400px; - float: right; - margin: 20px; + margin: 0 auto; } .federation-network-graph { - width: 240px; - height: 240px; float: left; margin: 20px; } diff --git a/view/templates/admin/federation.tpl b/view/templates/admin/federation.tpl index 6904be6b92..cbd3a40a1e 100644 --- a/view/templates/admin/federation.tpl +++ b/view/templates/admin/federation.tpl @@ -1,5 +1,5 @@ - - + +

{{$title}} - {{$page}}

{{$intro}}

@@ -17,13 +17,40 @@

@@ -36,15 +63,42 @@ var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false, {{/if}} {{/foreach}} -
- +
    {{foreach $c[1] as $v}} @@ -55,4 +109,4 @@ var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false,
+ \ No newline at end of file -- 2.39.5