add day graph and total bandwidth to admin panel

This commit is contained in:
2020-07-19 11:29:39 +02:00
parent d8001d1176
commit 6a516299b5
4 changed files with 19 additions and 5 deletions

View File

@@ -12,7 +12,8 @@
{{if $isAdmin}}
<h3>Bandwidth and views</h3>
<div class="highlight_dark">
<button onclick="loadGraph(60, 1, true);">Live</button>
<button onclick="loadGraph(360, 1, true);">Live</button>
<button onclick="loadGraph(1440, 10, true);">Day</button>
<button onclick="loadGraph(10080, 60, false);">Week</button>
<button onclick="loadGraph(20160, 60, false);">Two Weeks</button>
<button onclick="loadGraph(43200, 1440, false);">Month</button>
@@ -23,8 +24,12 @@
<div id="chart_container" class="chart-container" style="position: relative; width: 100%; height: 300px;">
<canvas id="bandwidth_chart"></canvas>
</div>
<hr/>
<div class="highlight_dark">
Total usage from <span id="time_start"></span> to <span id="time_end"></span><br/>
<span id="total_bandwidth"></span> bandwidth and <span id="total_views"></span> views
</div>
<div class="limit_width">
<br/>
<a href="/admin/globals">Update global settings</a>
<h3>Database connection statistics</h3>
<table>