Merge pull request #2264 from tobiasd/20160118-admin2
fed stats template beautification && doc strings for the mod/admin
This commit is contained in:
commit
f51535f38e
2 changed files with 40 additions and 35 deletions
|
@ -114,7 +114,16 @@ function admin_post(&$a){
|
||||||
/**
|
/**
|
||||||
* @brief Generates content of the admin panel pages
|
* @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
|
* @param App $a
|
||||||
* @return string
|
* @return string
|
||||||
|
|
|
@ -23,11 +23,7 @@ var FedData = [
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
];
|
];
|
||||||
var ctx = document.getElementById("FederationChart").getContext("2d");
|
var ctx = document.getElementById("FederationChart").getContext("2d");
|
||||||
var myDoughnutChart = new Chart(ctx).Doughnut(FedData,
|
var myDoughnutChart = new Chart(ctx).Doughnut(FedData, { animateRotate : false, });
|
||||||
{
|
|
||||||
animateRotate : false,
|
|
||||||
});
|
|
||||||
document.getElementById('FederationLegend').innerHTML = myDoughnutChart.generateLegend();
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<table id="federation-stats">
|
<table id="federation-stats">
|
||||||
|
|
Loading…
Reference in a new issue