34 lines
950 B
Plaintext
34 lines
950 B
Plaintext
@using Microsoft.AspNetCore.Mvc.Localization
|
|
@model gehGassi.Web.Models.NewsVm
|
|
@inject IViewLocalizer Localizer
|
|
|
|
@{
|
|
ViewData["Title"] = "Show";
|
|
Layout = "_LayoutApp";
|
|
}
|
|
|
|
<div class="mt-2 mb-3 text-center">
|
|
<img src="/file/documents/thumbnails/400/@Model.Image" class="img-fluid" alt="@Model.Headline" />
|
|
</div>
|
|
|
|
<h3 class="mb-3 text-center news-headline">@Model.Headline</h3>
|
|
|
|
<div class="text-center">
|
|
<span class="fst-italic news-info">@Model.Start.Value.Date.ToShortDateString()</span>
|
|
@if (!string.IsNullOrWhiteSpace(Model.Creator))
|
|
{
|
|
<span> | </span><span class="news-info">@Model.Creator</span>
|
|
}
|
|
@if (Model.IsExternal && !string.IsNullOrWhiteSpace(Model.Source))
|
|
{
|
|
<span> | </span>
|
|
<span class="news-info">@Localizer["Common_Source"]:</span> <span class="news-info fw-bold">@Model.Source</span>
|
|
}
|
|
</div>
|
|
|
|
|
|
<div class="mt-4 news-content">
|
|
@Html.Raw(Model.Content)
|
|
</div>
|
|
|