summaryrefslogtreecommitdiff
path: root/CoreWiki/Pages/Details.cshtml
blob: 9f48f9f9d5887465f85f07137da5b8d2f330b6d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@page "/{slug?}"
@model CoreWiki.Pages.DetailsModel

@{
    ViewData["Title"] = Model.Article.Topic;
}

<h1>@Model.Article.Topic</h1>
<h5>Last Published: <span data-value="@Model.Article.Published" class="timeStampValue">@Model.Article.Published</span></h5>

<markdown markdown="Article.Content"/>

<div>
    <a asp-page="./Edit" asp-route-slug="@Model.Article.Slug">Edit</a>
    @if (Model.Article.Slug != "home-page")
    {
        <text>| </text> <a href="~/">Back to Home</a>
    }
</div>