From aa1e0e321ad64b72d80efcb7984acdf1cd3d6b7a Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 15 Nov 2022 12:20:30 +0700 Subject: refactor: Add some styling --- src/Pages/Read.cshtml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'src/Pages/Read.cshtml') diff --git a/src/Pages/Read.cshtml b/src/Pages/Read.cshtml index 2aecc75..cbbd69a 100644 --- a/src/Pages/Read.cshtml +++ b/src/Pages/Read.cshtml @@ -4,23 +4,31 @@ ViewData["Title"] = Model.Source.Title; } -
+

@Model.Source.Title

@Model.Source.Subtitle

-
+
- Publisert: @Model.Source.PublishedAt.ToString("F")
- Oppdatert: @Model.Source.UpdatedAt.ToString("F") + @if (Model.Source.PublishedAt != default) { + Publisert: @Model.Source.PublishedAt.ToString("dd-MM-yyyy hh:mm:ss") + } + @if (Model.Source.UpdatedAt != default) { +
+ Oppdatert: @Model.Source.UpdatedAt.ToString("dd-MM-yyyy hh:mm:ss") + }
-
+
@foreach (var author in Model.Source.Authors) { - @author.Name: @author.Title
+ @author.Name: @author.Title +
}
-
-@Html.Raw(Model.Source.Content) \ No newline at end of file + +
+ @Html.Raw(Model.Source.Content) +
\ No newline at end of file -- cgit v1.3