Fixed page title not localizing

This commit is contained in:
2025-11-30 17:07:16 +01:00
parent 90306e8944
commit bfda6dae0b
3 changed files with 9 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
@model DashboardViewModel
@{
ViewData["Title"] = Localizer.Get("Welcome");
ViewData["Title"] = Localizer["Dashboard"];
}
<div class="container mt-5">
@@ -94,7 +94,7 @@
<div class="col-md-6 mb-3">
<div class="card shadow">
<div class="card-body">
<h5 class="card-title">@order.CreatorName</h5>
<h5 class="card-title">@order.Name</h5>
<p class="card-text">
<small class="text-muted">@Localizer.Get("Code"): <strong>@order.OrderCode</strong></small><br>
<small class="text-muted">@Localizer.Get("CreatedBy"): @order.CreatorName</small><br>
@@ -102,7 +102,7 @@
</p>
<p><strong>@Localizer.Get("IOwe"): @Localizer["Currency", myItems.Sum(oi => (oi.MenuItem?.Price ?? 0) * oi.Quantity).ToString("F2")]</strong></p>
<div class="d-flex gap-2">
<a href="/order/join?code=@order.OrderCode" class="btn btn-sm btn-primary">@Localizer.Get("View")</a>
<a href="/order/details?code=@order.OrderCode" class="btn btn-sm btn-primary">@Localizer.Get("View")</a>
@if (!order.IsClosed)
{
<a href="/order/join?code=@order.OrderCode" class="btn btn-sm btn-success">@Localizer.Get("AddMore")</a>