{% extends "base.html" %} {% block title %}{{ player.name }} - DigiServer v2{% endblock %} {% block content %}

{{ player.name }}

{% if status_info.online %} 🟒 Online {% else %} ⚫ Offline {% endif %} Last seen: {{ status_info.last_seen_ago }}
✏️ Edit Player πŸ“€ Upload Content ← Back to Players

πŸ“‹ Player Information

Display Name: {{ player.name }}
Hostname: {{ player.hostname }}
Location: {{ player.location or '-' }}
Orientation: {{ player.orientation or 'Landscape' }}
Group: {% if player.group %} {{ player.group.name }} {% else %} No group {% endif %}
Created: {{ player.created_at.strftime('%Y-%m-%d %H:%M') }}

πŸ” Authentication Details

Password Set: {% if player.password_hash %} βœ“ Yes {% else %} βœ— No {% endif %}
Quick Connect Code: {% if player.quickconnect_code %} βœ“ Yes {% else %} βœ— No {% endif %}
Auth Code: {% if player.auth_code %} βœ“ Yes
{% else %} βœ— No {% endif %}
✏️ Edit Authentication Settings

🎬 Current Playlist

+ Add Content
{% if playlist %}
Total Items: {{ playlist|length }} | Total Duration: {% set total_duration = namespace(value=0) %}{% for item in playlist %}{% set total_duration.value = total_duration.value + (item.duration or 10) %}{% endfor %}{{ total_duration.value }}s
{% for item in playlist %} {% endfor %}
Order File Name Type Duration Actions
{{ loop.index }} {{ item.filename }} {% if item.type == 'image' %} πŸ“· Image {% elif item.type == 'video' %} 🎬 Video {% elif item.type == 'pdf' %} πŸ“„ PDF {% else %} πŸ“ Other {% endif %} {{ item.duration or 10 }}s
{% else %}
⚠️ No content in playlist. Upload content to get started.
{% endif %}

πŸ“Š Recent Activity & Feedback

{% if recent_feedback %}
{% for feedback in recent_feedback %} {% endfor %}
Time Status Message Error
{{ feedback.timestamp.strftime('%Y-%m-%d %H:%M:%S') }} {% if feedback.status == 'playing' %} ▢️ Playing {% elif feedback.status == 'idle' %} ⏸️ Idle {% elif feedback.status == 'error' %} ❌ Error {% else %} {{ feedback.status }} {% endif %} {{ feedback.message or '-' }} {% if feedback.error %} {{ feedback.error[:50] }}... {% else %} - {% endif %}
{% else %}
ℹ️ No activity logs yet. The player will send feedback once it starts playing content.
{% endif %}
{% endblock %}