summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/benki
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-26 08:05:27 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-01-26 08:11:48 +0100
commit0aac7c559d87de940238c91ff06c1d225d489ec5 (patch)
tree56c83e013bc794e2c2c3fd75a9174e9ff4bb45cc /src/main/resources/templates/benki
parentacac08ebf1f65a73503f56ac47892257026275ff (diff)
Add wiki page revision list.
Change-Id: I21a6ff469ef4dbf64a8d77eb4626765ae43ed37e
Diffstat (limited to 'src/main/resources/templates/benki')
-rw-r--r--src/main/resources/templates/benki/wiki/wikiPageRevisionList.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
new file mode 100644
index 0000000..c44a6e5
--- /dev/null
+++ b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
@@ -0,0 +1,38 @@
+{@eu.mulk.mulkcms2.benki.wiki.WikiPage page}
+{@java.lang.String title}
+
+{#include base.html}
+
+{#title}Revisions &#8212; {title} &#8212; Benki Wiki{/title}
+
+{#body}
+<header>
+ <h1>Revisions &#8212; {title}</h1>
+</header>
+
+<main>
+ <table>
+ <thead>
+ <tr>
+ <th>Date</th>
+ <th>Title</th>
+ <th>Author</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {#with page}
+ {#for revision in revisions}
+ {#with revision}
+ <tr>{date.humanDateTime}</tr>
+ <tr>{title}</tr>
+ <tr>{author.firstName}</tr>
+ {/with}
+ {/for}
+ {/with}
+ </tbody>
+ </table>
+</main>
+{/body}
+
+{/include}