This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/templates/default-layout.hamlet
Gregor Kleen 8ee3d723c7 Add check to only show secondary pageactions when needed
Rename pageactionprime.* -> pageaction.*
2019-01-28 13:26:46 +01:00

43 lines
1001 B
Plaintext

$if not isModal
<!-- secondary navigation at the side -->
^{asidenav}
<!-- navigation -->
^{navbar}
<div .main>
<div .main__content>
$if not isModal
<!-- breadcrumbs -->
$if not $ Just HomeR == mcurrentRoute
^{breadcrumbsWgt}
<div .main__content-body>
<section>
$maybe headline <- contentHeadline
<h1 .headline-one>
<!-- $maybe back <- lastMaybe parents
<a .breadcrumbs__link href="@{fst back}">#{snd back} -->
^{headline}
$if not isModal && hasPageActions
<!-- page actions -->
^{pageaction}
<!-- actual content -->
^{widget}
<!-- alerts -->
<div #alerts .alerts>
$forall (status, msg) <- mmsgs
$with status2 <- bool status "info" (status == "")
<div class="alert alert-#{status2}">
<div .alert__content>
#{msg}
<!-- footer -->
$if not isModal
^{footer}