From 99643ff0896de5672f5e33b2b7838f042cab0506 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Thu, 7 Jun 2018 00:32:58 +0200 Subject: [PATCH] page title above page actions -wip --- src/Foundation.hs | 2 ++ templates/default-layout.hamlet | 5 +++++ templates/terms.hamlet | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/Foundation.hs b/src/Foundation.hs index b29f42d2a..4827ad443 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -439,6 +439,8 @@ instance Yesod UniWorX where navbar = $(widgetFile "widgets/navbar") asidenav :: Widget asidenav = $(widgetFile "widgets/asidenav") + contentHeadline :: Maybe String + contentHeadline = Just "Some Headline" -- should be coming from the currently viewed page breadcrumbs :: Widget breadcrumbs = $(widgetFile "widgets/breadcrumbs") pageactionprime :: Widget diff --git a/templates/default-layout.hamlet b/templates/default-layout.hamlet index b628912f0..99b24bfca 100644 --- a/templates/default-layout.hamlet +++ b/templates/default-layout.hamlet @@ -13,6 +13,11 @@ $with status2 <- bool status "info" (status == "")
#{msg} + +

+ #{fromMaybe "default headline" contentHeadline} + + ^{pageactionprime} diff --git a/templates/terms.hamlet b/templates/terms.hamlet index 4d5e14631..df30fd90f 100644 --- a/templates/terms.hamlet +++ b/templates/terms.hamlet @@ -1,4 +1,6 @@

Semesterübersicht + + ^{table}