{% extends 'base.html' %} {% block title %}User Management{% endblock %} {% block content %}
{% for u in users %} {% endfor %}
UsernameFull NameRoleStatus Last LoginCreated
{{ u.username }} {% if u.id == g.user.id %}you{% endif %} {{ u.full_name }} {{ ROLES.get(u.role, u.role) }} {% if u.is_active %} Active {% else %} Inactive {% endif %} {{ u.last_login[:16] if u.last_login else 'Never' }} {{ u.created_at[:10] if u.created_at else '–' }}
Edit {% if u.id != g.user.id %}
{% endif %}
{% if can_admin() %} View Audit Log {% endif %} {% endblock %}