api attempt

This commit is contained in:
NaNoMelo
2024-10-12 17:30:19 +02:00
committed by imperosol
parent ff307f1d65
commit e30a6e8e6e
5 changed files with 367 additions and 123 deletions

View File

@ -5,6 +5,11 @@
{% trans counter_name=counter %}{{ counter_name }} activity{% endtrans %}
{% endblock %}
{% block head %}
{{ super() }}
<script src="{{ static('webpack/graph-index.ts') }}"></script>
{% endblock %}
{%- block additional_css -%}
<link rel="stylesheet" href="{{ static('counter/css/activity.scss') }}">
{%- endblock -%}
@ -22,6 +27,8 @@
{% trans %}There is currently no barman connected.{% endtrans %}
{% endif %}
</ul>
<h4>{% trans %}Last Week Activity {% endtrans %}</h4>
<canvas id="activityChart" width="400" height="200"></canvas>
{% endif %}
<h5>{% trans %}Legend{% endtrans %}</h5>
@ -36,6 +43,3 @@
</div>
</div>
{% endblock %}