Merge branch 'master' into fix-edit-config

This commit is contained in:
augustin64
2023-08-30 15:56:36 +02:00
12 changed files with 73 additions and 31 deletions

View File

@ -32,7 +32,7 @@
{% endblock %}
</div>
</div>
<div class="footer">Version not detected yet</div>
<div class="footer">{{version}}</div>
</body>
</html>

View File

@ -28,7 +28,7 @@
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/grafana';">stats</button>
<button class="unselected" onclick="location.href = '/stats';">stats</button>
</td>
</tr>
<tr>

View File

@ -29,7 +29,7 @@
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/grafana';">stats</button>
<button class="unselected" onclick="location.href = '/stats';">stats</button>
</td>
</tr>
<tr>

View File

@ -29,7 +29,7 @@
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/grafana';">stats</button>
<button class="unselected" onclick="location.href = '/stats';">stats</button>
</td>
</tr>
<tr>

View File

@ -29,7 +29,7 @@
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/grafana';">stats</button>
<button class="unselected" onclick="location.href = '/stats';">stats</button>
</td>
</tr>
<tr>

View File

@ -29,7 +29,7 @@
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/grafana';">stats</button>
<button class="unselected" onclick="location.href = '/stats';">stats</button>
</td>
</tr>
<tr>

View File

@ -29,7 +29,7 @@
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/grafana';">stats</button>
<button class="unselected" onclick="location.href = '/stats';">stats</button>
</td>
</tr>
<tr>
@ -61,10 +61,8 @@
<h2>TODO</h2>
<ul>
<li>reorder config</li>
<li>real override</li>
<li>ban button</li>
<li>pourquoi tout ne se lance pas bien ?</li>
<li>synchroniser le mot de passe de grafana et celui du bot</li>
</ul>
<br><br>

View File

@ -0,0 +1,51 @@
{% extends "base.html" %}
{% block left_pannel %}
<table>
<tr>
<td>
<button class="unselected" onclick="location.href = '/override';">override</button>
</td>
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/config';">config</button>
</td>
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/discord';">discord</button>
</td>
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/proxy';">proxy</button>
</td>
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/logs';">logs</button>
</td>
</tr>
<tr>
<td>
<button class="selected" onclick="location.href = '/grafana';">stats</button>
</td>
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/settings';">settings</button>
</td>
</tr>
</table>
{% endblock %}
{% block content %}
{%if not current_user.is_authenticated %}
<button class="unselected" onclick="location.href = '/login';">login</button>
{% else %}
<iframe src="/grafana?orgId=1&kiosk" width="100%" height="100%" frameborder="0"></iframe>
{% endif %}
{%endblock %}