Fix display of report type and status

This commit is contained in:
Eli Ribble 2026-02-05 02:49:23 +00:00
parent fd86281a7e
commit ee7d99bc4c
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -121,8 +121,8 @@ func contentFromNuisance(ctx context.Context, report_id string) (result ContentS
result.Report.Address = nuisance.Address
result.Report.Created = nuisance.Created
result.Report.ImageCount = len(images)
result.Report.Status = nuisance.Status.String()
result.Report.Type = nuisance.Status.String()
result.Report.Status = strings.Title(nuisance.Status.String())
result.Report.Type = "Mosquito Nuisance"
result.Report.Details = []DetailEntry{
DetailEntry{
Name: "Active early morning?",

View file

@ -66,7 +66,7 @@ document.addEventListener("DOMContentLoaded", onLoad);
<div class="card mb-4">
<div class="card-header bg-primary text-white d-flex justify-content-between align-items-center">
<h5 class="mb-0">Report {{.Report.ID|publicReportID}}</h5>
<span class="badge bg-warning text-dark status-badge">Reported</span>
<span class="badge bg-warning text-dark status-badge">{{.Report.Status}}</span>
</div>
<div class="card-body">
<div class="row">