added usage limit visuals and DB

This commit is contained in:
2025-06-05 11:40:52 +02:00
parent 97fde3388b
commit a78f3c0786
9 changed files with 212 additions and 66 deletions

View File

@@ -26,6 +26,7 @@
{% from 'components/recent_activity.html' import recent_activity %}
{% from 'components/conversation_storage.html' import conversation_storage %}
{% from 'components/notification_overview.html' import notification_overview %}
{% from 'components/usage_limits.html' import usage_limits %}
<style>
.masonry {
@@ -54,6 +55,9 @@
<!-- Storage Section -->
<div class="mb-4">
<h2 class="section-title">Storage Overview</h2>
{% if current_user.is_admin %}
{{ usage_limits(usage_stats) }}
{% endif %}
<div class="masonry">
{{ storage_overview(room_count, file_count, folder_count, total_size) }}
{{ storage_usage(storage_by_type) }}