Admin Dashboard

Players

{{ players|length }}

Users

{{ users|length }}

Media Files

{{ media_files|length }}

Active Schedules

{{ schedules|length if schedules else 0 }}

System Activity Monitor
Live Feed
{% if activities %}
{% for activity in activities %}
{% if activity.action_type == 'upload' %}
{% elif activity.action_type == 'delete' %}
{% elif activity.action_type == 'schedule' %}
{% elif activity.action_type == 'player_add' %}
{% elif activity.action_type == 'user_add' %}
{% else %}
{% endif %}
{{ activity.user.username }} {% if activity.action_type == 'upload' %} Upload {% elif activity.action_type == 'delete' %} Delete {% elif activity.action_type == 'schedule' %} Schedule {% elif activity.action_type == 'player_add' %} Player Mgmt {% elif activity.action_type == 'user_add' %} User Mgmt {% endif %}

{{ activity.description }}

{{ activity.timestamp.strftime('%m/%d %H:%M') }}
{{ activity.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}
{% endfor %}
{% else %}
No system activity yet

User and system activities will appear here

{% endif %}
Players Management
{% for player in all_players %} {% endfor %}
Name Device ID Channel Status Actions
{{ player.name or player.device_id }} {{ player.device_id }} {{ player.channel.name if player.channel else 'No Channel' }} {% if player.is_active %} Active {% else %} Inactive {% endif %}
Users Management
{% for user in all_users %} {% endfor %}
Username Email Role Actions
{{ user.username }} {{ user.email }} {% if user.role == 'admin' %} Admin {% else %} User {% endif %} {% if user.id != current_user.id %} {% endif %}
All Media Files
{{ media_files|length }} files
{% if media_files %}
{% for file in media_files %} {% endfor %}
Preview File Name Type Uploaded By Upload Date Actions
{% if file.file_type in ['jpg', 'jpeg', 'png', 'gif'] %} {{ file.original_name }} {% elif file.file_type in ['mp4', 'avi', 'mov'] %}
{% else %}
{% endif %}
{{ file.original_name }}
{{ file.filename }}
{{ file.file_type.upper() }} {% set user = users|selectattr("id", "equalto", file.uploaded_by)|first %} {% if user %} {{ user.username }} {% if user.is_admin %} (Admin){% endif %} {% else %} Unknown User {% endif %} {{ file.upload_date.strftime('%Y-%m-%d') }}
{{ file.upload_date.strftime('%H:%M') }}
{% else %}

No media files uploaded yet

Upload the first file using the form above!

{% endif %}