1 <script src="{{$baseurl}}/vendor/asset/Chart-js/dist/Chart.min.js"></script>
2 <canvas id="FederationChart" class="federation-graph" width="400" height="400"></canvas>
4 <h1>{{$title}} - {{$page}}</h1>
7 <p class="error-message">{{$hint}}</p>
11 {{foreach $counts as $c}}
12 {{if $c[0]['total'] > 0}}
13 <li>{{$c[0]['platform']}} ({{$c[0]['total']}}/{{$c[0]['users']}})</li>
23 {{foreach $counts as $c}}
28 {{foreach $counts as $c}}
32 hoverBackgroundColor: [
33 {{foreach $counts as $c}}
39 {{foreach $counts as $c}}
40 "{{$c[0]['platform']}}",
44 var ctx = document.getElementById("FederationChart").getContext("2d");
45 var myDoughnutChart = new Chart(ctx, {
49 legend: {display: false},
50 animation: {animateRotate: false},
56 <table id="federation-stats">
57 {{foreach $counts as $c}}
58 {{if $c[0]['total'] > 0}}
60 <th>{{$c[0]['platform']}}</th>
61 <th><strong>{{$c[0]['total']}}</strong></td>
62 <td>{{$c[0]['network']}}</td>
65 <td colspan="3" class="federation-data">
66 <canvas id="{{$c[2]}}Chart" class="federation-network-graph" width="240" height="240"></canvas>
71 {{foreach $c[1] as $v}}
76 {{foreach $c[1] as $v}}
80 hoverBackgroundColor: [
81 {{foreach $c[1] as $v}}
87 {{foreach $c[1] as $v}}
92 var ctx = document.getElementById("{{$c[2]}}Chart").getContext("2d");
93 var my{{$c[2]}}DoughnutChart = new Chart(ctx, {
97 legend: {display: false},
98 animation: {animateRotate: false},
103 <ul class="federation-stats">
104 {{foreach $c[1] as $v}}
105 <li>{{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}<span class="version-match">{{$v['version']}}</span>{{else}}{{$v['version']}}{{/if}} ({{$v['total']}})</li>