{% extends "base.html" %} {% block title %}Content - {{ project.name }} - AutoModerate{% endblock %} {% block page_title %}Content - {{ project.name }}{% endblock %} {% block page_actions %}
Back to Project
{% endblock %} {% block content %}
{% if current_search or current_time_filter %}
{% endif %}
Search & Filter Content
{{ total_stats.total|format_number }}

Total Content

{{ total_stats.approved|format_number }}

Approved

{{ total_stats.rejected|format_number }}

Rejected

{{ total_stats.flagged|format_number }}

Flagged

N/A

Average Processing Time

Content Items
Showing {{ pagination.items|length|format_number }} of {{ pagination.total|format_number }} items (Page {{ pagination.page }} of {{ pagination.pages }})
{% if pagination.items %}
{% for content in pagination.items %} {% endfor %}
Content ID Type Content Status Moderation Results Processing Time Created Actions
{{ content.id[:8] }}...
{{ content.content_type|title }}
{% if content.content_type == 'text' %} {{ content.content_data[:100] }}{% if content.content_data|length > 100 %}...{% endif %} {% elif content.content_type == 'image' %} Image: {{ content.content_data[:50] }}... {% elif content.content_type == 'video' %} Video: {{ content.content_data[:50] }}... {% else %} {{ content.content_data[:100] }}{% if content.content_data|length > 100 %}...{% endif %} {% endif %}
{% if content.meta_data %} Has metadata {% endif %}
{% if content.status == 'approved' %} Approved {% elif content.status == 'rejected' %} Rejected {% elif content.status == 'flagged' %} Flagged {% elif content.status == 'error' %} Error {% else %} Pending {% endif %} {% if content.moderation_results %}
{% for result in content.moderation_results[:3] %} {% if result.moderator_type == 'ai' %} AI {% elif result.moderator_type == 'rule' %} Rule {% else %} Manual {% endif %} {% endfor %} {% if content.moderation_results|length > 3 %} +{{ content.moderation_results|length - 3 }} {% endif %}
{% else %} No results {% endif %}
{% if content.moderation_results %} {% set first_result = content.moderation_results[0] %} {% if first_result.details and first_result.details.total_request_time %} {% set total_time = first_result.details.total_request_time %} {% if total_time < 1 %} {{ (total_time * 1000) | round | int }}ms {% else %} {{ "%.2f" | format(total_time) }}s {% endif %} {% else %} {# Fallback to old behavior for legacy records #} {% set total_time = content.moderation_results | sum(attribute='processing_time') %} {% if total_time %} {% if total_time < 1 %} {{ (total_time * 1000) | round | int }}ms {% else %} {{ "%.2f" | format(total_time) }}s {% endif %} {% else %} N/A {% endif %} {% endif %} {% else %} N/A {% endif %} {{ content.created_at.strftime('%Y-%m-%d %H:%M') }}
{% if pagination.pages > 1 %} {% endif %} {% else %}

No Content Found

{% if current_status %} No content with status "{{ current_status }}" found. {% else %} No content has been submitted for moderation yet. {% endif %}

{% if current_status %} View All Content {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}