]> git.mxchange.org Git - friendica.git/blob - view/templates/admin_federation.tpl
Bugfix: there was a gui issue on the navbar account dropdown button
[friendica.git] / view / templates / admin_federation.tpl
1 <script src="{{$baseurl}}/library/Chart.js-1.0.2/Chart.min.js"></script>
2 <canvas id="FederationChart" class="federation-graph"></canvas>
3 <div id="adminpage">
4     <h1>{{$title}} - {{$page}}</h1>
5     <p>{{$intro}}</p>
6     {{if not $autoactive}}
7         <p class="error-message">{{$hint}}</p>
8     {{/if}}
9     <p>{{$legendtext}}
10     <ul>
11     {{foreach $counts as $c}}
12         {{if $c[0]['total'] > 0}}
13             <li>{{$c[0]['platform']}} ({{$c[0]['total']}})</li>
14         {{/if}}
15     {{/foreach}}
16     </ul>
17     </p>
18 </div>
19 <script>
20 var FedData = [
21 {{foreach $counts as $c}}
22     { value: {{$c[0]['total']}}, label: "{{$c[0]['platform']}}", color: '{{$c[3]}}', highlight: "#EE90A1", },
23 {{/foreach}}
24 ];
25 var ctx = document.getElementById("FederationChart").getContext("2d");
26 var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false, });
27 </script>
28
29 <table id="federation-stats">
30 {{foreach $counts as $c}}
31     {{if $c[0]['total'] > 0}}
32     <tr>
33             <th>{{$c[0]['platform']}}</th>
34             <th><strong>{{$c[0]['total']}}</strong></td>
35             <td>{{$c[0]['network']}}</td>
36     </tr>
37     <tr>
38     <td colspan="3" class="federation-data">
39     <canvas id="{{$c[2]}}Chart" class="federation-network-graph"></canvas>
40     <script>
41     var {{$c[2]}}data = [
42     {{foreach $c[1] as $v}}
43         { value: {{$v['total']}}, label: '{{$v['version']}}', color: "{{$c[3]}}", highlight: "#EE90A1",},
44     {{/foreach}}
45     ];
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,});
48     </script>
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>
52     {{/foreach}}
53     </ul>
54     </td>
55     </tr>
56     {{/if}}
57 {{/foreach}}
58 </table>