{% extends "base.html" %} {% block title %}Dashboard - DocuPulse{% endblock %} {% block content %}

Welcome back, {{ current_user.username }}!

{% macro format_size(size) %} {% if size < 1024 %} {{ size }} B {% elif size < 1024 * 1024 %} {{ (size / 1024)|round(1) }} KB {% elif size < 1024 * 1024 * 1024 %} {{ (size / (1024 * 1024))|round(1) }} MB {% else %} {{ (size / (1024 * 1024 * 1024))|round(1) }} GB {% endif %} {% endmacro %}
Storage Overview
Browse
Rooms:
{{ room_count }}
Files:
{{ file_count }}
Folders:
{{ folder_count }}
Total Size:
{{ format_size(total_size) }}
Recent Activity
View All
{% for activity in recent_activity %}
{% if activity.type == 'folder' %} {% else %} {% endif %}
{{ activity.name }}
{% if activity.is_starred %} Starred {% endif %} {% if activity.is_deleted %} Trash {% endif %}
{{ activity.room.name }} • {{ activity.uploader.username }} {{ activity.uploader.last_name }} • {% if activity.uploaded_at %}{{ activity.uploaded_at|timeago }}{% else %}Unknown{% endif %}
{% if activity.type == 'file' and activity.can_download %} {% endif %}
{% endfor %}
Storage Usage
View Details
{% if storage_by_type %}
{% for type in storage_by_type %}
{{ type.extension|upper }}:
{{ format_size(type.total_size) }}
{% endfor %}
{% else %}
No storage data available
{% endif %}
{% if current_user.is_admin %}
Recent Contacts
{% if recent_contacts %} {% else %}
No contacts yet.
{% endif %}
Contact Status
{{ active_count }}
Active
{{ inactive_count }}
Inactive
{% endif %}
Starred Files
View All
{{ starred_count }}
Starred
{{ file_count - starred_count }}
Unstarred
Trash
View All
Files in trash:
{{ trash_count }}
Deleting in 7 days:
{{ pending_deletion }}
Oldest deletion:
{{ oldest_trash_date|default('N/A') }}
Storage used:
{{ format_size(trash_size) }}
Files will be permanently deleted after 30 days
You can restore files before they are permanently deleted
Trash by Type
View All
{% if trash_by_type %}
{% for type in trash_by_type %}
{{ type.extension|upper }}:
{{ type.count }}
{% endfor %}
{% else %}
No files in trash
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}