{% extends spa_base or "base.html"%} {% block title %}Admin - Atividade {{ user.email }}{% endblock %} {% block extra_head %} {% endblock %} {% block content %} {% set base = url_for('admin_user_history', user_id=user.id) %} {% set fsuf = ('&de=' ~ date_from if date_from else '') ~ ('&ate=' ~ date_to if date_to else '') %}

📜 Atividade — {{ user.email }}

{% if user.is_admin %}ADMIN {% endif %} {% if user.is_paid %}Premium{% if user.paid_until %} até {{ user.paid_until|brdate }}{% endif %}{% else %}Free{% endif %} {% if user.is_banned %} · 🚫 Banido{% endif %} · Desde {{ user.created_at|brdate if user.created_at else '-' }} · Última atividade: {{ last_activity or '-' }}

← Voltar aos Usuários 🏠 Painel
{{ stats.sessions_all }}
Sessões (total)
{{ stats.sessions_range }}
Sessões {% if has_range %}no período{% else %}hoje/intervalo{% endif %}
{{ stats.distinct_content }}
Conteúdos distintos
{{ stats.active_days }}
Dias ativos
{{ stats.fav_total }}
Favoritos
{{ stats.logins_total }}
Logins (total)
{% if date_from or date_to %}Limpar{% endif %}
{% if sec == 'watch' %} {% elif sec == 'fav' %} {% else %}{% endif %} {% for r in rows %} {% if sec == 'watch' %} {% elif sec == 'fav' %} {% else %} {% endif %} {% else %} {% endfor %}
{{ 'Conteúdo' if sec == 'watch' else ('Favorito' if sec == 'fav' else 'Ação') }}GrupoInícioÚltima visãoDuraçãoStatusTipoAdicionado emGrupoData/HoraIPDispositivo / UA
{{ r.title }}{{ r.group }} {{ r.a }} {{ r.b }} {{ r.dur }} {% if r.active %}AO VIVO{% else %}histórico{% endif %}{{ r.group }} {{ r.a }} {{ r.b }}{{ r.a }} {{ r.b }} {{ r.dur }}
Nenhum registro nesta seção {% if has_range %}para o período selecionado{% endif %}.
{% if pagination.pages > 1 %}
Página {{ pagination.page }} de {{ pagination.pages }} · {{ pagination.total }} registro(s)
{% if pagination.has_prev %} ← Anterior {% else %}← Anterior{% endif %} {% if pagination.has_next %} Próxima → {% else %}Próxima →{% endif %}
{% endif %}
{% endblock %}