From ae402342fe5736d74cf86e21c642abbb0805ff83 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 25 Jan 2020 10:09:57 +0100 Subject: Web: Extract base template. Change-Id: I20a4fbb04aa75a94f96617b0c4d1be00ab3e4aca --- src/main/resources/templates/base.html | 15 ++++++++ .../resources/templates/benki/wiki/wikiPage.html | 42 ++++++++++------------ 2 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 src/main/resources/templates/base.html (limited to 'src/main/resources') diff --git a/src/main/resources/templates/base.html b/src/main/resources/templates/base.html new file mode 100644 index 0000000..8fefe31 --- /dev/null +++ b/src/main/resources/templates/base.html @@ -0,0 +1,15 @@ + + + + + + {#insert title}{/} + + + + + + +{#insert body}{/} + + diff --git a/src/main/resources/templates/benki/wiki/wikiPage.html b/src/main/resources/templates/benki/wiki/wikiPage.html index 865d3ba..7caf94d 100644 --- a/src/main/resources/templates/benki/wiki/wikiPage.html +++ b/src/main/resources/templates/benki/wiki/wikiPage.html @@ -1,28 +1,22 @@ - - - - +{@eu.mulk.mulkcms2.benki.wiki.WikiPageRevision page} - {title} — Benki Wiki +{#include base.html} +{#title}{page.title} — Benki Wiki{/title} +{#body} +
+
+

{page.title}

+
- - +
+ {#with page}{content.raw}{/} +
- - - - + +
+{/body} +{/include} -- cgit v1.2.3