Light refactor
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-05-24 11:29:49 +02:00
parent cda1d225bc
commit 2f8afc380e
2 changed files with 0 additions and 72 deletions
@@ -165,13 +165,6 @@
}
</button>
@* <a href="/profile" class="btn btn-dark rounded-pill px-3 py-1 d-inline-flex align-items-center gap-2 btn-sm fw-medium shadow-sm">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" />
<circle cx="12" cy="7" r="4" />
</svg>
Log In
</a> *@
<a href="/profile" class="btn btn-dark rounded-pill px-3 py-1 d-none d-md-inline-flex align-items-center gap-2 btn-sm fw-medium shadow-sm">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" />
@@ -83,71 +83,6 @@
}
</div>
</div>
@* <div class="tab-pane fade show active" id="orders" role="tabpanel">
<div class="d-flex justify-content-between align-items-center mb-4">
<h5 class="fw-bold m-0">Order History</h5>
</div>
<div class="table-container-fixed">
<table class="table align-middle profile-table m-0">
<thead>
<tr>
<th class="text-uppercase text-muted col-order-id">Order ID</th>
<th class="text-uppercase text-muted col-title">Title</th>
<th class="text-uppercase text-muted col-date">Date</th>
<th class="text-uppercase text-muted col-address">Address</th>
<th class="text-uppercase text-muted col-status">Status</th>
<th class="text-uppercase text-muted text-end col-total">Total</th>
<th class="text-uppercase text-muted text-center col-invoice">Invoice</th>
</tr>
</thead>
<tbody>
@if (orderHistory != null)
{
@foreach (var order in orderHistory)
{
<tr>
<td class="fw-medium text-nowrap">@order.OrderId</td>
<td>
<a href="/products/@order.ProductId" class="product-link fw-medium text-nowrap" title="@order.ProductTitle">
@order.DisplayTitle
</a>
</td>
<td class="text-muted text-nowrap">@order.OrderDate.ToString("MMM dd, yyyy")</td>
<td>
<span class="text-secondary d-inline-flex align-items-center gap-1 text-nowrap">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="12" height="12" fill="currentColor" class="me-1 text-muted flex-shrink-0">
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
</svg>
@order.ShippingAddressName
</span>
</td>
<td>
<span class="badge @(order.Status?.ToLower() == "shipped" ? "status-shipped" : "status-delivered") text-uppercase text-nowrap">
@order.Status
</span>
</td>
<td class="text-end fw-medium text-nowrap">R @order.Total.ToString("N2")</td>
<td class="text-center">
<button class="btn btn-link p-0 text-dark action-btn" title="Download Invoice" @onclick="() => DownloadInvoice(order.OrderId)">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="svg-icon">
<path d="M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z" />
</svg>
</button>
</td>
</tr>
}
}
else
{
<tr>
<td colspan="7" class="text-center text-muted py-4">Loading order history...</td>
</tr>
}
</tbody>
</table>
</div>
</div> *@
<div class="tab-pane fade" id="shipping" role="tabpanel">
<div class="d-flex justify-content-between align-items-center mb-4">