{% extends "base.html" %} {% from "_pagination.html" import pager %} {% block title %}📊 Video Storage Analytics{% endblock %} {% block content %}
| User{% if sort=='user' %} {{ 'â–²' if dir=='asc' else 'â–¼' }}{% endif %} | Platform{% if sort=='platform' %} {{ 'â–²' if dir=='asc' else 'â–¼' }}{% endif %} | Total Storage (GB){% if sort=='total_size' %} {{ 'â–²' if dir=='asc' else 'â–¼' }}{% endif %} | Video Count{% if sort=='video_count' %} {{ 'â–²' if dir=='asc' else 'â–¼' }}{% endif %} | Avg Size per Video (GB){% if sort=='avg_size' %} {{ 'â–²' if dir=='asc' else 'â–¼' }}{% endif %} | Last Online{% if sort=='last_online' %} {{ 'â–²' if dir=='asc' else 'â–¼' }}{% endif %} |
|---|---|---|---|---|---|
| {{ user }} {% set uname = user.lower() %} {% if uname in online_set %} {% elif uname in recording_offline_set %} {% else %} {% endif %} | {{ platform }} | {{ "%.2f"|format(stats.total_size) }} | {{ stats.video_count }} | {{ "%.2f"|format(avg_sizes[key]) }} | {% if stats.last_online %} {{ stats.last_online.strftime('%Y-%m-%d') }} {% else %} — {% endif %} |