Files
hamkadr/src/JobsMedical.Web/Pages/Shared/_RawListingRow.cshtml
T
soroush.asadi 21befd5b1e
CI/CD / CI · dotnet build (push) Successful in 1m35s
CI/CD / Deploy · hamkadr (push) Successful in 3m1s
Display timestamps in Tehran time, not UTC
The server clock is correct (UTC); the app rendered UTC wall-clock directly, so
the run log showed ~3.5h behind Tehran. Add JalaliDate.ToTehran (flat UTC+3:30 —
Iran dropped DST in 2022) + DateTimeLabel, and convert the UTC-stored timestamp
displays (ingestion run log, RawListing FetchedAt, report CreatedAt). Shift
start/end inputs are TimeOnly, left as-is.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 17:16:57 +03:30

27 lines
1.4 KiB
Plaintext

@model JobsMedical.Web.Models.RawListing
@{
var c = Model.Confidence;
var confClass = c >= 70 ? "badge-verified" : c >= 50 ? "badge-day" : "badge-type";
}
<div class="card card-pad" style="margin-bottom:12px;">
<div class="row" style="display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap;">
<strong>@Model.SourceChannel</strong>
<span style="display:flex; gap:8px; align-items:center;">
<span class="badge @confClass">اطمینان @JalaliDate.ToPersianDigits(c.ToString())٪</span>
<span class="muted" style="font-size:12px;">@JalaliDate.DateTimeLabel(Model.FetchedAt)</span>
</span>
</div>
<p style="margin:10px 0; white-space:pre-wrap;">@Model.RawText</p>
@if (!string.IsNullOrEmpty(Model.ValidationNotes))
{
<p class="muted" style="font-size:12.5px; margin:0 0 10px;">⚠ @Model.ValidationNotes</p>
}
<div style="display:flex; gap:8px; flex-wrap:wrap;">
<a class="btn btn-accent" asp-page="/Admin/Review" asp-route-id="@Model.Id">بررسی و انتشار ←</a>
<form method="post" asp-page="/Admin/Index" asp-page-handler="QuickDiscard" asp-route-id="@Model.Id"
onsubmit="return confirm('این آگهی رد و کنار گذاشته شود؟');">
<button type="submit" class="btn btn-outline" style="color:var(--danger); border-color:var(--danger);">✕ رد</button>
</form>
</div>
</div>