diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-02-10 16:19:46 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-02-10 16:19:46 +0100 |
| commit | 00c3b32e2db200a2f42396ac7f8381704ec97268 (patch) | |
| tree | 089d68dcbda127d4c95ccca9b0c9a18b59dc8bdc /CoreWiki/Pages/Details.cshtml | |
Initial Commit
Diffstat (limited to 'CoreWiki/Pages/Details.cshtml')
| -rw-r--r-- | CoreWiki/Pages/Details.cshtml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CoreWiki/Pages/Details.cshtml b/CoreWiki/Pages/Details.cshtml new file mode 100644 index 0000000..5ef6460 --- /dev/null +++ b/CoreWiki/Pages/Details.cshtml @@ -0,0 +1,19 @@ +@page "{topicName?}"
+@model CoreWiki.Pages.DetailsModel
+
+@{
+ ViewData["Title"] = "Details";
+}
+
+<h1>@Model.Article.Topic</h1>
+<h5>Last Published: @Model.Article.Published.ToShortDateString()</h5>
+
+<markdown markdown="Article.Content"/>
+
+<div>
+ <a asp-page="./Edit" asp-route-id="@Model.Article?.Topic">Edit</a>
+ @if (Model.Article.Topic != "HomePage")
+ {
+ <text>| </text> <a href="~/">Back to Home</a>
+ }
+</div>
|
