add user config page and admin menu

This commit is contained in:
2019-12-17 19:28:30 +01:00
parent 4c33b0841e
commit 7653470a7c
16 changed files with 648 additions and 107 deletions

View File

@@ -77,7 +77,14 @@
},
ticks: {
callback: function(value, index, values) {
return Math.round((value*8/1e6)/(interval*60)) + " Mbps";
if (value > 1e12) {
return Math.round(value/1e9)/1e3 + " TB";
} else if (value > 1e9) {
return Math.round(value/1e6)/1e3 + " GB";
} else if (value > 1e6) {
return Math.round(value/1e3)/1e3 + " MB";
}
return value/1e3 + " kB";
}
},
gridLines: {
@@ -127,6 +134,10 @@
setData();
</script>
<hr/>
<div class="limit_width">
<a href="/admin/globals">Update global settings</a>
</div>
{{else}}
<h1 style="text-align: center;">;)</h1>
{{end}}