{% extends "base.html" %} {% from "components/pagination.html" import render_pagination %} {% from "components/empty_state.html" import empty_state %} {% block title %}User Management · Admin{% endblock %} {% macro card(label, value, icon, color) %}
Search, filter and manage marketplace users.
| User | Role | Premium | Listings | Featured | Joined | Last Login | Status | Actions |
|---|---|---|---|---|---|---|---|---|
|
{% if r.profile_picture %}
{{ r.full_name }}
{{ r.email }}
|
{{ 'Admin' if r.role == 'super_admin' else 'Student' }} | {% if r.is_premium %}Premium{% else %}Free{% endif %} | {{ "{:,}".format(r.listings) }} | {{ "{:,}".format(r.featured) }} | {{ r.joined.strftime('%d %b %Y') }} | {% if r.last_login %}{{ r.last_login.strftime('%d %b %Y') }}{% else %}—{% endif %} | {{ r.account_status|title }} | Manage |
| {{ empty_state('bi-people', 'No users found', 'No users match the current search and filters.', reset_label='Reset filters', reset_url=url_for('admin.users'), compact=true) }} | ||||||||