diff --git a/mod/admin.php b/mod/admin.php index 70ef5f7511..e9e6323680 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -114,7 +114,16 @@ function admin_post(&$a){ /** * @brief Generates content of the admin panel pages * - * This function generates the content for the admin panel. + * This function generates the content for the admin panel. It consists of the + * aside menu (same for the entire admin panel) and the code for the soecified + * subpage of the panel. + * + * The structure of the adress is: /admin/subpage/details though "details" is + * only necessary for some subpages, like themes or addons where it is the name + * of one theme resp. addon from which the details should be shown. Content for + * the subpages is generated in separate functions for each of the subpages. + * + * The returned string hold the generated HTML code of the page. * * @param App $a * @return string diff --git a/view/templates/admin_federation.tpl b/view/templates/admin_federation.tpl index fb75157585..fad87da5b5 100644 --- a/view/templates/admin_federation.tpl +++ b/view/templates/admin_federation.tpl @@ -9,9 +9,9 @@

{{$legendtext}}

@@ -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}} - - - - - - - -{{/if}} + {{if $c[0]['total'] > 0}} + + + + + + + + {{/if}} {{/foreach}}
{{$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}} -
-
{{$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}} +
+