Update to run with Podman
This commit is contained in:
@@ -280,7 +280,7 @@
|
||||
{% if user.is_superuser %}
|
||||
<div class="navbar-item has-dropdown is-hoverable">
|
||||
<a class="navbar-link">
|
||||
Threshold
|
||||
Manage
|
||||
</a>
|
||||
|
||||
<div class="navbar-dropdown">
|
||||
@@ -290,6 +290,9 @@
|
||||
<a class="navbar-item" href="#">
|
||||
Discord
|
||||
</a>
|
||||
<a class="navbar-item" href="{% url 'monolith_stats' %}">
|
||||
Stats
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
15
core/templates/manage/monolith/stats/index.html
Normal file
15
core/templates/manage/monolith/stats/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div
|
||||
style="display: none;"
|
||||
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
||||
hx-get="{% url 'monolith_stats_db' type='page' %}"
|
||||
hx-trigger="load, every 5s"
|
||||
hx-target="#stats"
|
||||
hx-swap="innerHTML">
|
||||
</div>
|
||||
<div class="box">
|
||||
<div id="stats">
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
14
core/templates/manage/monolith/stats/overview.html
Normal file
14
core/templates/manage/monolith/stats/overview.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends 'mixins/partials/generic-detail.html' %}
|
||||
|
||||
{% block tbody %}
|
||||
{% for item in object %}
|
||||
{% if item.data %}
|
||||
{% for row in item.data %}
|
||||
<tr>
|
||||
<th>{{ row.Variable_name }}</th>
|
||||
<td>{{ row.Value }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -174,10 +174,11 @@
|
||||
</td>
|
||||
{% elif column.name == 'match_ts' %}
|
||||
<td class="{{ column.name }}">
|
||||
{% with match_ts=cell|splitstr:'T' %}
|
||||
<!-- {# with match_ts=cell|splitstr:'T' %}
|
||||
<p>{{ match_ts.0 }}</p>
|
||||
<p>{{ match_ts.1 }}</p>
|
||||
{% endwith %}
|
||||
{% endwith #} -->
|
||||
<p>{{ match_ts }}</p>
|
||||
</td>
|
||||
{% elif column.name == 'type' or column.name == 'mtype' %}
|
||||
<td class="{{ column.name }}">
|
||||
|
||||
Reference in New Issue
Block a user