fieldwitness/frontends/web/templates/attest/result.html
Aaron D. Lee 5b0d90eeaf
Some checks failed
CI / lint (push) Failing after 12s
CI / typecheck (push) Failing after 12s
Fix all power-user review issues (FR-01 through FR-12)
FR-01: Fix data directory default from ~/.fieldwitness to ~/.fwmetadata
FR-02/05/07: Accept all file types for attestation (not just images)
  - Web UI, CLI, and batch now accept PDFs, CSVs, audio, video, etc.
  - Perceptual hashing for images, SHA-256-only for everything else
FR-03: Implement C2PA import path + CLI commands (export/verify/import/show)
FR-04: Fix GPS downsampling bias (math.floor → round)
FR-06: Add HTML/PDF evidence summaries for lawyers
  - Always generates summary.html, optional summary.pdf via xhtml2pdf
FR-08: Fix CLI help text ("FieldWitness -- FieldWitness" artifact)
FR-09: Centralize stray paths (trusted_keys, carrier_history, last_backup)
FR-10: Add 67 C2PA bridge tests (vendor assertions, cert, GPS, export)
FR-12: Add Tor onion service support for source drop box
  - fieldwitness serve --tor flag, persistent/transient modes
  - Killswitch covers hidden service keys

Also: bonus fix for attest/api.py hardcoded path bypassing paths.py

224 tests passing (67 new).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 20:10:37 -04:00

104 lines
4.2 KiB
HTML

{% extends "base.html" %}
{% block title %}Attestation Created — FieldWitness{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="alert alert-success">
<i class="bi bi-check-circle me-2"></i>
<strong>Attestation created successfully!</strong>
File <code>{{ filename }}</code> has been attested and stored in the local log (index #{{ index }}).
</div>
{% if not is_image %}
<div class="alert alert-info">
<i class="bi bi-info-circle me-2"></i>
This file is attested by cryptographic hash. Perceptual matching (pHash, dHash)
is available for image files only.
</div>
{% endif %}
<div class="card bg-dark border-secondary mb-4">
<div class="card-header">
<h5 class="mb-0"><i class="bi bi-file-earmark-check me-2"></i>Attestation Record</h5>
</div>
<div class="card-body">
<div class="row g-3">
<div class="col-md-6">
<label class="form-label text-muted small">Record ID</label>
<div><code class="text-info">{{ record_id }}</code></div>
</div>
<div class="col-md-6">
<label class="form-label text-muted small">Short ID</label>
<div><code class="text-info">{{ short_id }}</code></div>
</div>
<div class="col-md-6">
<label class="form-label text-muted small">Attestor Fingerprint</label>
<div><code>{{ attestor[:16] }}...</code></div>
</div>
<div class="col-md-6">
<label class="form-label text-muted small">Timestamp</label>
<div>{{ timestamp }}</div>
</div>
</div>
</div>
</div>
<div class="card bg-dark border-secondary mb-4">
<div class="card-header">
<h6 class="mb-0"><i class="bi bi-hash me-2"></i>File Hashes</h6>
</div>
<div class="card-body">
<div class="mb-2">
<label class="form-label text-muted small">SHA-256 (exact identity)</label>
<div><code class="text-warning small">{{ sha256 }}</code></div>
</div>
{% if phash %}
<div class="mb-2">
<label class="form-label text-muted small">pHash (survives JPEG compression)</label>
<div><code class="small">{{ phash }}</code></div>
</div>
{% endif %}
{% if dhash %}
<div class="mb-2">
<label class="form-label text-muted small">dHash (survives resizing)</label>
<div><code class="small">{{ dhash }}</code></div>
</div>
{% endif %}
</div>
</div>
{% if caption or location_name %}
<div class="card bg-dark border-secondary mb-4">
<div class="card-header">
<h6 class="mb-0"><i class="bi bi-info-circle me-2"></i>Metadata</h6>
</div>
<div class="card-body">
{% if caption %}
<div class="mb-2">
<label class="form-label text-muted small">Caption</label>
<div>{{ caption }}</div>
</div>
{% endif %}
{% if location_name %}
<div class="mb-2">
<label class="form-label text-muted small">Location</label>
<div>{{ location_name }}</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
<div class="d-grid gap-2">
<a href="/attest" class="btn btn-outline-info">
<i class="bi bi-plus-circle me-2"></i>Attest Another File
</a>
<a href="/attest/log" class="btn btn-outline-secondary">
<i class="bi bi-journal-text me-2"></i>View Attestation Log
</a>
</div>
</div>
</div>
{% endblock %}