Initial project setup
This commit is contained in:
17
Web/View/Entries/Show.hs
Normal file
17
Web/View/Entries/Show.hs
Normal 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"
|
||||
]
|
||||
Reference in New Issue
Block a user