{% extends "base.html" %} {% block title %}{{ project.name }} Analytics - AutoModerate{% endblock %} {% block page_title %}{{ project.name }} Analytics{% endblock %} {% block page_actions %}
{% endblock %} {% block scripts %} {% endblock %} {% block content %}{{ project.description or 'No description provided' }}
Total Content
Moderations
Active Rules
Active Keys
{{ project_stats.total_api_keys }} totalActive Users
| Key Name | Total Usage | Status | Last Used |
|---|---|---|---|
| {{ key.name or "Unnamed Key" }} | {{ key.usage_count or 0 }} | {{ 'Active' if key.is_active else 'Inactive' }} | {% if key.last_used %} {{ key.last_used.strftime('%Y-%m-%d %H:%M') }} {% else %} Never {% endif %} |
No API keys found for this project.
{% endif %}| User ID | Submissions | Approved | Rejected | Rate |
|---|---|---|---|---|
{{ user.external_user_id }} |
{{ user.submissions }} | {{ user.approved or 0 }} | {{ user.rejected or 0 }} | {% if user.submissions > 0 %} {% set rate = ((user.approved or 0) / user.submissions * 100) %} {{ "%.1f"|format(rate) }}% {% else %} N/A {% endif %} |
No user activity found for this period.
{% endif %}| Rule Name | Type | Triggered |
|---|---|---|
| {{ rule.name }} | {{ rule.rule_type }} | {{ rule.triggered }} |
No rule activity found for this period.
{% endif %}| Content | Type | Status | User | Submitted |
|---|---|---|---|---|
|
{{ content.content_data[:100] }}{% if content.content_data|length > 100 %}...{% endif %}
|
{{ content.content_type }} | {{ content.status }} |
{% if content.api_user and content.api_user.external_user_id %}
{{ content.api_user.external_user_id }}
{% else %}
Unknown
{% endif %}
|
{{ content.created_at.strftime('%Y-%m-%d %H:%M') }} |
No recent activity found.
{% endif %}