diff options
Diffstat (limited to 'src/Pages/Read.cshtml')
| -rw-r--r-- | src/Pages/Read.cshtml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Pages/Read.cshtml b/src/Pages/Read.cshtml new file mode 100644 index 0000000..2aecc75 --- /dev/null +++ b/src/Pages/Read.cshtml @@ -0,0 +1,26 @@ +@page "/les/{site}" +@model ReadModel +@{ + ViewData["Title"] = Model.Source.Title; +} + +<div style="display: flex; justify-content: space-between"> + <div> + <h1>@Model.Source.Title</h1> + <p>@Model.Source.Subtitle</p> + </div> + <div style="display: flex; flex-direction: row"> + <div style="flex-direction:column"> + <small>Publisert: @Model.Source.PublishedAt.ToString("F")</small><br> + <small>Oppdatert: @Model.Source.UpdatedAt.ToString("F")</small> + </div> + <div style="margin: 0 5px; height: 100%; border: 1px solid black"></div> + <div style="flex-direction:column"> + @foreach (var author in Model.Source.Authors) { + <small><em>@author.Name</em>: @author.Title</small> <br/> + } + </div> + </div> +</div> +<hr> +@Html.Raw(Model.Source.Content)
\ No newline at end of file |
