Navbar link to blog

This commit is contained in:
Michael Snoyman 2018-07-02 07:26:29 +03:00
parent b81f5b790b
commit 64c1f9519e
No known key found for this signature in database
GPG Key ID: A048E8C057E86876
2 changed files with 4 additions and 11 deletions

View File

@ -145,6 +145,7 @@ instance ToMarkup (Route App) where
toMarkup c =
case c of
AllSnapshotsR{} -> "Snapshots"
BlogHomeR -> "Blog"
_ -> ""
-- This instance is required to use forms. You can modify renderMessage to

View File

@ -9,17 +9,9 @@
<img src="/static/img/stackage.png" title="FP Complete">
<div class="nav-collapse collapse">
<ul class="nav">
$forall route <- [AllSnapshotsR]
$maybe current <- cur
$if route == current
<li .active>
<a href=@{route}>#{route}
$else
<li>
<a href=@{route}>#{route}
$nothing
<li>
<a href=@{route}>#{route}
$forall route <- [AllSnapshotsR, BlogHomeR]
<li :Just route == cur:.active>
<a href=@{route}>#{route}
$maybe msg <- mmsg
<div .container>