{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block content %}
{% set cards = [ ('Total Players', stats.players_total, 'bi-people-fill', 'success'), ('Sessions Today', stats.sessions_today, 'bi-clock-history', 'info'), ('Chats Today', stats.chat_today, 'bi-chat-dots-fill', 'primary'), ('Commands Today', stats.commands_today, 'bi-terminal-fill', 'warning'), ('Blocks Today', stats.blocks_today, 'bi-bricks', 'secondary'), ('Deaths Today', stats.deaths_today, 'bi-heartbreak-fill', 'danger'), ('Entity Events', stats.entity_events_today, 'bi-bug-fill', 'light'), ('Proxy Events', stats.proxy_events_today, 'bi-diagram-3-fill', 'info'), ] %} {% for label, value, icon, color in cards %}
{{ value | int }}
{{ label }}
{% endfor %}
Online Players
{% if online %} {% for s in online %} {% endfor %}
PlayerServerSince
{{ s.player_name }} {{ s.server_name }} {{ s.login_time | fmt_dt }}
{% else %}

No players online
{% endif %}
Last 24h Activity
{% for r in recent %} {% endfor %}
TimeTypePlayerServerDetail
{{ r.timestamp | fmt_dt }} {% set badge = {'chat':'primary','command':'warning','block':'secondary','death':'danger'} %} {{ r.source }} {{ r.player_name or '—' }} {{ r.server_name or '—' }} {{ r.detail }}
Block Events (last 7 days)
Death Causes (7d)
Top Playtime
{% for p in top_players %} {% endfor %}
{{ loop.index }}. {{ p.username }} {{ p.total_playtime_sec | fmt_duration }}
Server Events (last 24h)
{% for e in server_events %} {% endfor %}
TimeTypeServerMessage
{{ e.timestamp | fmt_dt }} {{ e.event_type }} {{ e.server_name }} {{ e.message }}
{% endblock %} {% block scripts %} {% endblock %}