add: сбор статистики и вывод агрегированных данных на главную (в футер)
All checks were successful
Build ETPGRF-site / build (push) Successful in 1m47s
All checks were successful
Build ETPGRF-site / build (push) Successful in 1m47s
This commit is contained in:
@@ -62,10 +62,18 @@
|
||||
</div>
|
||||
|
||||
{# Футер #}
|
||||
<footer class="footer mt-auto py-3">
|
||||
<div class="container">
|
||||
<span class="text-muted small">© Sergei Erjemin, 2025–{% now 'Y' %}.</span>
|
||||
<span class="text-muted small float-end">v0.1.2</span>
|
||||
<footer class="footer mt-auto py-2 mt-4">
|
||||
<div class="container d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small nowrap">© Sergei Erjemin, 2025–{% now 'Y' %}.</span>
|
||||
|
||||
<span class="text-muted small nowrap"><i class="bi bi-tags me-1" title="Версия библиотеки etpgrf / Версия сайта"></i>v0.1.3 / v0.1.3</span>
|
||||
|
||||
{# Сводная статистика (HTMX) #}
|
||||
<span class="text-muted small" hx-get="{% url 'stats_summary' %}" hx-trigger="load">
|
||||
...
|
||||
</span>
|
||||
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
12
etpgrf_site/typograph/templates/typograph/stats_summary.html
Normal file
12
etpgrf_site/typograph/templates/typograph/stats_summary.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<span class="me-3" title="Просмотров">
|
||||
<i class="bi bi-eye me-1"></i>{{ views }}
|
||||
</span>
|
||||
<span class="me-3 nowrap" title="На вход обработано текстов/символов">
|
||||
<i class="bi bi-box-arrow-in-right me-1"></i>{{ processed }}/{{ chars_in }}
|
||||
</span>
|
||||
<span class="me-3" title="На выход получено символов">
|
||||
<i class="bi bi-box-arrow-right me-1"></i>{{ chars_out }}
|
||||
</span>
|
||||
<span class="nowrap" title="Скопировано в буфер текстов/символов">
|
||||
<i class="bi bi-clipboard-check me-1"></i>{{ copied }}/{{ chars_copied }}
|
||||
</span>
|
||||
Reference in New Issue
Block a user