{% extends "base.html" %} {% block title %}Admin Panel - Fake News Detector{% endblock %} {% block content %}

Admin Panel

System management and user administration

Administrator
{{ total_users }}
Total Users
{{ total_predictions }}
Total Analyses
{{ total_real }}
Real News
{{ total_fake }}
Fake News
Daily Activity (Last 30 Days)
User Roles
{% set admin_count = users | selectattr("role", "equalto", "admin") | list | length %} {% set analyst_count = users | selectattr("role", "equalto", "analyst") | list | length %} {% set user_count = users | selectattr("role", "equalto", "user") | list | length %}
Administrators {{ admin_count }}
Analysts {{ analyst_count }}
Users {{ user_count }}
User Management
{% for user_item in users %} {% endfor %}
User Email Role Joined Last Updated Actions
{% if user_item.profile_image_url %} {% else %}
{% endif %}
{{ user_item.first_name or 'N/A' }} {{ user_item.last_name or '' }}
ID: {{ user_item.id[:8] }}...
{{ user_item.email or 'N/A' }} {{ user_item.created_at.strftime('%m/%d/%Y') if user_item.created_at else 'N/A' }} {{ user_item.updated_at.strftime('%m/%d/%Y') if user_item.updated_at else 'N/A' }}
{% if user_item.id != user.id %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}