notifications on dashboard
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
{% from 'components/trash_type.html' import trash_type %}
|
||||
{% from 'components/recent_activity.html' import recent_activity %}
|
||||
{% from 'components/conversation_storage.html' import conversation_storage %}
|
||||
{% from 'components/notification_overview.html' import notification_overview %}
|
||||
|
||||
<style>
|
||||
.masonry {
|
||||
@@ -42,22 +43,37 @@
|
||||
width: 100%;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.section-title {
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="masonry">
|
||||
{{ storage_overview(room_count, file_count, folder_count, total_size) }}
|
||||
{{ storage_usage(storage_by_type) }}
|
||||
{{ recent_activity(recent_events, is_admin) }}
|
||||
{{ conversation_storage(conversation_count, message_count, attachment_count, conversation_total_size, recent_conversations) }}
|
||||
|
||||
{% if current_user.is_admin %}
|
||||
{{ contacts(recent_contacts) }}
|
||||
<!-- {{ contact_status(active_count, inactive_count) }} -->
|
||||
{% endif %}
|
||||
|
||||
{{ starred_files(starred_count, file_count) }}
|
||||
{{ trash(trash_count, pending_deletion, oldest_trash_date, trash_size) }}
|
||||
{{ trash_type(trash_by_type) }}
|
||||
<!-- Storage Section -->
|
||||
<div class="mb-4">
|
||||
<h2 class="section-title">Storage Overview</h2>
|
||||
<div class="masonry">
|
||||
{{ storage_overview(room_count, file_count, folder_count, total_size) }}
|
||||
{{ storage_usage(storage_by_type) }}
|
||||
{{ conversation_storage(conversation_count, message_count, attachment_count, conversation_total_size, recent_conversations) }}
|
||||
{{ trash(trash_count, pending_deletion, oldest_trash_date, trash_size) }}
|
||||
{{ trash_type(trash_by_type) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Other Components Section -->
|
||||
<div>
|
||||
<h2 class="section-title">Activity & Statistics</h2>
|
||||
<div class="masonry">
|
||||
{{ recent_activity(recent_events, is_admin) }}
|
||||
{{ starred_files(starred_count, file_count) }}
|
||||
{{ notification_overview(unread_notifications, recent_notifications) }}
|
||||
{% if current_user.is_admin %}
|
||||
{{ contacts(recent_contacts) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user