Replace literal Unicode special chars with HTML entities across all 233 views
Sweeps em dashes, en dashes, multiplication signs, ellipses, and curly quotes to their HTML entity equivalents (— – × … ‘ ’) in all .cshtml files, skipping <script> blocks. Prevents encoding corruption from AI tools and Windows encoding mismatches that caused recurring symbol bugs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,76 +0,0 @@
|
||||
@model PowderCoating.Web.ViewModels.Reports.JobStatusAgingViewModel
|
||||
@{ ViewData["Title"] = "Job Status Aging"; }
|
||||
|
||||
<partial name="_ReportHeader" model="Model" />
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<span class="fw-semibold">Active Jobs by Days in Current Status</span>
|
||||
<span class="text-muted small">@Model.Items.Count active jobs</span>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm table-hover mb-0">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>Job #</th>
|
||||
<th>Customer</th>
|
||||
<th>Status</th>
|
||||
<th>Priority</th>
|
||||
<th class="text-end">Days in Status</th>
|
||||
<th>Due Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model.Items)
|
||||
{
|
||||
var rowClass = item.IsOverdue ? "table-danger" : item.DaysInCurrentStatus > 7 ? "table-warning" : "";
|
||||
<tr class="@rowClass">
|
||||
<td>
|
||||
<a asp-controller="Jobs" asp-action="Details" asp-route-id="@item.JobId">
|
||||
@item.JobNumber
|
||||
</a>
|
||||
</td>
|
||||
<td>@item.CustomerName</td>
|
||||
<td><span class="badge bg-secondary">@item.StatusName</span></td>
|
||||
<td>
|
||||
@{
|
||||
var pBadge = item.PriorityCode switch {
|
||||
"RUSH" => "bg-danger",
|
||||
"URGENT" => "bg-warning text-dark",
|
||||
"HIGH" => "bg-orange text-white",
|
||||
"LOW" => "bg-secondary",
|
||||
_ => "bg-primary"
|
||||
};
|
||||
}
|
||||
<span class="badge @pBadge">@item.PriorityName</span>
|
||||
</td>
|
||||
<td class="text-end fw-semibold">
|
||||
@item.DaysInCurrentStatus day@(item.DaysInCurrentStatus != 1 ? "s" : "")
|
||||
</td>
|
||||
<td>
|
||||
@if (item.DueDate.HasValue)
|
||||
{
|
||||
if (item.IsOverdue)
|
||||
{
|
||||
<span class="text-danger fw-semibold">
|
||||
<i class="bi bi-exclamation-triangle me-1"></i>@item.DueDate.Value.ToString("MMM d, yyyy")
|
||||
</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span>@item.DueDate.Value.ToString("MMM d, yyyy")</span>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="text-muted">—</span>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user