---
type: "Source File"
title: "<div class=\"container\" style=\"max-width: 1200px; margin: 2rem auto; padding: 0 1rem;\">"
description: "{% extends \"base.html\" %} {% block title %}Admin Review - CopeCheck UK{% endblock %} {% block content %} <div class=\"container\" style=\"max-width: 1200px; margin: 2rem auto; padding: 0 1rem;\"> <h1>Pipeline Review."
resource: "https://uk.copecheck.com"
tags: ["copecheck", "uk", "source-file", "html"]
timestamp: "2026-04-23T09:10:48Z"
site: "uk"
source_path: "copecheck-uk/templates/admin_review.html"
---

# <div class="container" style="max-width: 1200px; margin: 2rem auto; padding: 0 1rem;">

Source path: `copecheck-uk/templates/admin_review.html`  
Index snapshot generated: `2026-11-24T13:42:54Z`  
File modified: `2026-04-23T09:10:48Z`

```html
{% extends "base.html" %}
{% block title %}Admin Review - CopeCheck UK{% endblock %}
{% block content %}
<div class="container" style="max-width: 1200px; margin: 2rem auto; padding: 0 1rem;">
    <h1>Pipeline Review Queue</h1>
    <p style="color: var(--text-secondary); margin-bottom: 2rem;">
        Flagged results from the tiered scoring pipeline that need manual review.
    </p>

    {% if not pending %}
    <div style="padding: 2rem; text-align: center; color: var(--text-secondary);
                border: 1px solid var(--border); border-radius: 8px;">
        No items pending review. All clear.
    </div>
    {% else %}
    <div style="margin-bottom: 1rem; color: var(--text-secondary);">
        {{ pending|length }} item(s) pending review
    </div>
    {% for item in pending %}
    <div class="review-card" id="card-{{ item.id }}"
         style="border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem;
                margin-bottom: 1rem; background: var(--bg-card);">
        <div style="display: flex; justify-content: space-between; align-items: flex-start;">
            <div>
                <h3 style="margin: 0;">{{ item.figure_name or item.figure_id }}</h3>
                <small style="color: var(--text-secondary);">{{ item.figure_role or '' }}</small>
            </div>
            <div style="text-align: right;">
                <span class="{{ item.cope_score|copecolor }}"
                      style="font-size: 1.5rem; font-weight: bold;">
                    {{ item.cope_score|int if item.cope_score else '?' }}
                </span>
                <br>
                <small>{{ item.band or 'unknown' }} &middot; {{ item.primary_mode or 'unknown' }}</small>
            </div>
        </div>

        <div style="margin-top: 1rem; font-size: 0.9rem;">
            <p><strong>Claim:</strong> {{ item.claim_summary or 'N/A' }}</p>
            <p><strong>Rationale:</strong> {{ item.rationale_short or 'N/A' }}</p>
            {% if item.scapegoat_target %}
            <p><strong>Scapegoat target:</strong> {{ item.scapegoat_target }}</p>
            {% endif %}
            <p><strong>Confidence:</strong> {{ item.confidence or 'N/A' }}
               &middot; <strong>Model:</strong> {{ item.model or 'unknown' }}
               &middot; <strong>Stage:</strong> {{ item.stage or 'unknown' }}</p>
            {% if item.source_url %}
            <p><a href="{{ item.source_url }}" target="_blank" rel="noopener">Source article</a></p>
            {% endif %}
        </div>

        <div style="margin-top: 1rem; display: flex; gap: 0.5rem;">
            <button onclick="reviewAction({{ item.id }}, 'approve')"
                    style="padding: 0.4rem 1rem; background: #22c55e; color: white;
                           border: none; border-radius: 4px; cursor: pointer;">
                Approve
            </button>
            <button onclick="reviewAction({{ item.id }}, 'reject')"
                    style="padding: 0.4rem 1rem; background: #ef4444; color: white;
                           border: none; border-radius: 4px; cursor: pointer;">
                Reject
            </button>
        </div>
    </div>
    {% endfor %}
    {% endif %}
</div>

<script>
async function reviewAction(id, action) {
    const resp = await fetch(`/api/admin/review/${id}`, {
        method: 'POST',
        headers: {'Content-Type': 'application/json'},
        body: JSON.stringify({action})
    });
    if (resp.ok) {
        document.getElementById(`card-${id}`).style.display = 'none';
    }
}
</script>
{% endblock %}
```
