1 <script src="{{$baseurl}}/library/Chart.js-1.0.2/Chart.min.js"></script>
2 <canvas id="FederationChart" class="federation-graph"></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']}})</li>
21 {{foreach $counts as $c}}
22 { value: {{$c[0]['total']}}, label: "{{$c[0]['platform']}}", color: '{{$c[3]}}', highlight: "#EE90A1", },
25 var ctx = document.getElementById("FederationChart").getContext("2d");
26 var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false, });
29 <table id="federation-stats">
30 {{foreach $counts as $c}}
31 {{if $c[0]['total'] > 0}}
33 <th>{{$c[0]['platform']}}</th>
34 <th><strong>{{$c[0]['total']}}</strong></td>
35 <td>{{$c[0]['network']}}</td>
38 <td colspan="3" class="federation-data">
39 <canvas id="{{$c[2]}}Chart" class="federation-network-graph"></canvas>
42 {{foreach $c[1] as $v}}
43 { value: {{$v['total']}}, label: '{{$v['version']}}', color: "{{$c[3]}}", highlight: "#EE90A1",},
46 var ctx = document.getElementById("{{$c[2]}}Chart").getContext("2d");
47 var my{{$c[2]}}DoughnutChart = new Chart(ctx).Doughnut({{$c[2]}}data, {animateRotate : false,});
49 <ul class="federation-stats">
50 {{foreach $c[1] as $v}}
51 <li>{{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}<span class="version-match">{{$v['version']}}</span>{{else}}{{$v['version']}}{{/if}} ({{$v['total']}})</li>