Initial project setup

This commit is contained in:
Arne Weiss
2022-09-02 22:40:21 +02:00
commit ce35c0300c
41 changed files with 1127 additions and 0 deletions

17
Web/View/Entries/Show.hs Normal file
View File

@@ -0,0 +1,17 @@
module Web.View.Entries.Show where
import Web.View.Prelude
data ShowView = ShowView { entry :: Entry }
instance View ShowView where
html ShowView { .. } = [hsx|
{breadcrumb}
<h1>Show Entry</h1>
<p>{entry}</p>
|]
where
breadcrumb = renderBreadcrumb
[ breadcrumbLink "Entries" EntriesAction
, breadcrumbText "Show Entry"
]