{% extends "admin/base.html" %} {% block admin_content %}
Manage Users
All Users (Sorted by Security Score)
0-19: High Risk 20-39: Medium Risk 40-69: Low Risk 70-100: Trusted
{% for user_data in users_with_scores %} {% set user = user_data.user %} {% set score = user_data.security_score %} {% endfor %}
ID Username HF ID Join Date Security Score Admin Status Actions
{{ user.id }} {{ user.username }} {{ user.hf_id }} {{ user.join_date.strftime('%Y-%m-%d %H:%M') if user.join_date else 'N/A' }} {% if score < 20 %} {{ score }}/100 {% elif score < 40 %} {{ score }}/100 {% elif score < 70 %} {{ score }}/100 {% else %} {{ score }}/100 {% endif %} {% if g.is_admin and user.username in admin_users %} Admin {% else %} User {% endif %} View Details
{% endblock %}