45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
@model Aberwyn.Models.WeeklyMenu
|
||
@{
|
||
var showDate = (DateTime)ViewBag.ShowDate;
|
||
var day = showDate.ToString("dddd", new System.Globalization.CultureInfo("sv-SE"));
|
||
}
|
||
<link rel="stylesheet" href="~/css/Welcome.css" />
|
||
|
||
<section class="welcome-section light-mode">
|
||
<div class="welcome-content">
|
||
<h1 class="welcome-title">Välkommen till
|
||
<span class="initial L">L</span>
|
||
<span class="initial E">E</span>
|
||
<span class="initial W">W</span>
|
||
<span class="initial E2">E</span>
|
||
<span class="initial L2">L</span></h1>
|
||
<p class="welcome-subtitle">Idag är det <strong>@day</strong> – dagens meny är:</p>
|
||
|
||
@if (Model != null)
|
||
{
|
||
<div class="meal-lines">
|
||
@if (!string.IsNullOrWhiteSpace(Model.BreakfastMealName)) {
|
||
<p><strong>Frukost:</strong> @Model.BreakfastMealName</p>
|
||
}
|
||
@if (!string.IsNullOrWhiteSpace(Model.LunchMealName)) {
|
||
<p><strong>Lunch:</strong> @Model.LunchMealName</p>
|
||
}
|
||
@if (!string.IsNullOrWhiteSpace(Model.DinnerMealName)) {
|
||
<p><strong>Middag:</strong> @Model.DinnerMealName</p>
|
||
}
|
||
|
||
@if (ViewBag.RestaurantIsOpen as bool? == true)
|
||
{
|
||
<p><strong>Pizzerian är öppen!</strong></p><a asp-controller="FoodMenu" asp-action="PizzaOrder">Klicka här för att Beställa pizza</a>
|
||
}
|
||
</div>
|
||
}
|
||
else
|
||
{
|
||
<p class="no-menu">Ingen meny är inlagd för denna dag.</p>
|
||
}
|
||
|
||
<a class="nav-button" href="/Home/Menu">Visa hela veckomenyn</a>
|
||
</div>
|
||
</section>
|