Skip to content

Commit 3945df3

Browse files
committed
Fix audit log display
1 parent 5988f8e commit 3945df3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

astra_app/core/templates/core/election_audit_log.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,16 @@ <h3 class="timeline-header">{{ ev.title }}</h3>
343343
<i class="fas fa-copy" aria-hidden="true"></i>
344344
</button>
345345
</p>
346+
{% if ev.payload.credentials_affected %}
347+
<p class="mb-2">
348+
<strong>Credentials anonymized:</strong> {{ ev.payload.credentials_affected }}
349+
</p>
350+
{% endif %}
351+
{% if ev.payload.emails_scrubbed %}
352+
<p class="mb-2">
353+
<strong>Emails scrubbed:</strong> {{ ev.payload.emails_scrubbed }}
354+
</p>
355+
{% endif %}
346356

347357
{% elif ev.event_type == 'election_anonymized' %}
348358
<p class="mb-2">Voter credentials anonymized and sensitive emails scrubbed.</p>
@@ -355,6 +365,10 @@ <h3 class="timeline-header">{{ ev.title }}</h3>
355365
<dt class="col-sm-6">Emails scrubbed</dt>
356366
<dd class="col-sm-6">{{ ev.payload.emails_scrubbed }}</dd>
357367
{% endif %}
368+
{% if ev.payload.scrub_anomaly == True %}
369+
<dt class="col-sm-6">Scrub anomaly detected</dt>
370+
<dd class="col-sm-6">{{ ev.payload.scrub_anomaly }}</dd>
371+
{% endif %}
358372
</dl>
359373

360374
{% elif ev.event_type == 'tally_completed' %}

0 commit comments

Comments
 (0)