2017-10-02 07:44:28 -04:00
|
|
|
<header>
|
|
|
|
<nav .navbar .navbar-expand-lg .navbar-dark.bg-dark>
|
|
|
|
$maybe title <- appTitle $ appSettings master
|
|
|
|
<a .navbar-brand href=@{HomeR}>#{title}
|
|
|
|
<button type="button" .navbar-toggler data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar" aria-label="Toggle navigation">
|
|
|
|
<span .navbar-toggler-icon>
|
2017-10-02 07:33:32 -04:00
|
|
|
|
2017-10-02 07:44:28 -04:00
|
|
|
<div #navbar .collapse.navbar-collapse>
|
|
|
|
<ul .navbar-nav.mr-auto>
|
|
|
|
$forall MenuItem label route _ <- navbarLeftFilteredMenuItems
|
|
|
|
<li .nav-item :Just route == mcurrentRoute:.active>
|
|
|
|
<a .nav-link href=@{route}>#{label}
|
2017-10-02 07:33:32 -04:00
|
|
|
|
2017-10-02 07:44:28 -04:00
|
|
|
<ul .navbar-nav>
|
|
|
|
$forall MenuItem label route _ <- navbarRightFilteredMenuItems
|
|
|
|
<li .nav-item :Just route == mcurrentRoute:.active>
|
|
|
|
<a .nav-link href=@{route}>#{label}
|
2017-10-02 07:33:32 -04:00
|
|
|
$if not $ null parents
|
|
|
|
<ul .breadcrumb.rounded-0>
|
2017-10-02 03:07:09 -04:00
|
|
|
$forall bc <- parents
|
2017-10-02 07:33:32 -04:00
|
|
|
<li .breadcrumb-item>
|
|
|
|
<a href=@{fst bc}>#{snd bc}
|
|
|
|
<li .breadcrumb-item.active>#{title}
|
2017-10-02 03:07:09 -04:00
|
|
|
$maybe msg <- mmsg
|
|
|
|
<div .alert.alert-info #message>#{msg}
|
2017-10-02 07:44:28 -04:00
|
|
|
|
|
|
|
<main>
|
2017-10-02 03:07:09 -04:00
|
|
|
^{widget}
|
|
|
|
|
|
|
|
<!-- Footer -->
|
2017-10-02 07:44:28 -04:00
|
|
|
<footer>
|
2017-10-02 03:07:09 -04:00
|
|
|
<div .container>
|
|
|
|
<p .text-muted>
|
2017-10-02 06:23:10 -04:00
|
|
|
All content on this site is licensed under a
|
|
|
|
<a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
|