page title above page actions -wip
This commit is contained in:
parent
993366bb60
commit
99643ff089
@ -439,6 +439,8 @@ instance Yesod UniWorX where
|
|||||||
navbar = $(widgetFile "widgets/navbar")
|
navbar = $(widgetFile "widgets/navbar")
|
||||||
asidenav :: Widget
|
asidenav :: Widget
|
||||||
asidenav = $(widgetFile "widgets/asidenav")
|
asidenav = $(widgetFile "widgets/asidenav")
|
||||||
|
contentHeadline :: Maybe String
|
||||||
|
contentHeadline = Just "Some Headline" -- should be coming from the currently viewed page
|
||||||
breadcrumbs :: Widget
|
breadcrumbs :: Widget
|
||||||
breadcrumbs = $(widgetFile "widgets/breadcrumbs")
|
breadcrumbs = $(widgetFile "widgets/breadcrumbs")
|
||||||
pageactionprime :: Widget
|
pageactionprime :: Widget
|
||||||
|
|||||||
@ -13,6 +13,11 @@
|
|||||||
$with status2 <- bool status "info" (status == "")
|
$with status2 <- bool status "info" (status == "")
|
||||||
<div class="alert alert-#{status2}">#{msg}
|
<div class="alert alert-#{status2}">#{msg}
|
||||||
|
|
||||||
|
<!-- workaround for pageactionprime not visible inside of ^{widget}. see terms.hamlet-->
|
||||||
|
<h1>
|
||||||
|
#{fromMaybe "default headline" contentHeadline}
|
||||||
|
<!-- maybe #{pageTitle pc} ? -->
|
||||||
|
|
||||||
<!-- prime page actions -->
|
<!-- prime page actions -->
|
||||||
^{pageactionprime}
|
^{pageactionprime}
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
<div .container>
|
<div .container>
|
||||||
<h1>Semesterübersicht
|
<h1>Semesterübersicht
|
||||||
|
|
||||||
|
<!-- pass widget ^{pageactionprime} down to this widget from default-layout? -->
|
||||||
|
|
||||||
^{table}
|
^{table}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user