You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
897 B
29 lines
897 B
<nav>
|
|
<div #navbar>
|
|
<table>
|
|
<tr>
|
|
$forall MenuItem label route children <- menuItems
|
|
<td .menu-item :Just route == mcurrentRoute:.active>
|
|
<a href="@{route}">#{label}
|
|
<table .menu-children>
|
|
$forall ChildItem childLabel childRoute <- children
|
|
<tr>
|
|
<td :Just childRoute == mcurrentRoute:.active>
|
|
<a href="@{childRoute}">#{childLabel}
|
|
<div #signin>
|
|
$maybe un <- user
|
|
Logged in as #{un}
|
|
(<a href=@{AuthR LogoutR}>Log out</a>)
|
|
$nothing
|
|
<a href=@{AuthR LoginR}>Log in
|
|
|
|
<div #content>
|
|
<div .container>
|
|
^{widget}
|
|
$maybe msg <- mmsg
|
|
<div .alert.alert-info #message>#{msg}
|
|
|
|
<footer>
|
|
<div .container>
|
|
<p .text-muted>
|
|
dfsek.com - <a href="https://git.dfsek.com/dfsek/dfsek.com">Source Code</a> - GNU AGPL - Content CC BY 4.0
|
|
|