Startpunkten
This commit is contained in:
27
Views/Sport/Details.cshtml
Normal file
27
Views/Sport/Details.cshtml
Normal file
@@ -0,0 +1,27 @@
|
||||
@model Sport
|
||||
@{
|
||||
ViewData["Title"] = "Mina Sporter";
|
||||
}
|
||||
|
||||
<div class="container mt-2 mb-5">
|
||||
<img src="~/images/sport/@Model.Bakgrundsbild" alt="@Model.SportNamn" class="img-fluid maxad mb-5" />
|
||||
<h2>@Model.SportNamn</h2>
|
||||
<p class="lead font-weight-bold">@Model.Ingress</p>
|
||||
<p>@Model.DetaljText</p>
|
||||
|
||||
<h2>Träningstider</h2>
|
||||
<p>@Model.Traningstider</p>
|
||||
|
||||
|
||||
@if (Context.User.Identity.IsAuthenticated) {
|
||||
<a href="/Sport" class="btn btn-success mt-3">Tillbaka till sporterna</a>
|
||||
}
|
||||
else {
|
||||
<a href="/Sport/Utbud" class="btn btn-success mt-3">Tillbaka till utbudet</a>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
||||
}
|
||||
Reference in New Issue
Block a user