{% extends "base.html" %} {% block title %}API User - {{ api_user.external_user_id }}{% endblock %} {% block content %}

API User Details

User ID: {{ api_user.external_user_id }}

{% if current_user.is_admin or api_user.project.user_id == current_user.id %} {% endif %} Back to API Users

User Statistics

Project:
{{ api_user.project.name }}
Approval Rate:
{% if api_user.approval_rate >= 80 %} {{ "%.1f"|format(api_user.approval_rate) }}% {% elif api_user.approval_rate >= 50 %} {{ "%.1f"|format(api_user.approval_rate) }}% {% else %} {{ "%.1f"|format(api_user.approval_rate) }}% {% endif %}
First Seen:
{{ api_user.first_seen.strftime('%Y-%m-%d %H:%M') }}
Last Seen:
{{ api_user.last_seen.strftime('%Y-%m-%d %H:%M') }}
Total Requests:
{{ api_user.current_total_requests }}
Days Active:
{{ api_user.days_active }}

Status Breakdown:

{{ api_user.current_approved_count }}

Approved

{{ api_user.current_rejected_count }}

Rejected

{{ api_user.current_flagged_count }}

Flagged
{% if api_user.current_total_requests > 0 %}
{{ api_user.current_approved_count }}
{{ api_user.current_rejected_count }}
{{ api_user.current_flagged_count }}
{% endif %}

Content History

{% if content_items %}
{% for content in content_items %} {% endfor %}
Content Preview Type Status Created Actions
{{ content.content_data[:80] }}{% if content.content_data|length > 80 %}...{% endif %}
{{ content.content_type }} {% if content.status == 'approved' %} {{ content.status }} {% elif content.status == 'rejected' %} {{ content.status }} {% elif content.status == 'flagged' %} {{ content.status }} {% else %} {{ content.status }} {% endif %} {{ content.created_at.strftime('%Y-%m-%d %H:%M') }} {% if content.status == 'flagged' %} Review {% else %} {% endif %}
{% if pagination.pages > 1 %} {% endif %} {% else %}

No content found

This user hasn't submitted any content yet.

{% endif %} {% if content_items %}
Showing {{ ((pagination.page - 1) * pagination.per_page) + 1 }}-{{ ((pagination.page - 1) * pagination.per_page) + content_items|length }} of {{ pagination.total }} content items
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}