summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2021-07-05 06:45:54 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2021-07-05 07:46:10 +0200
commit49b01519bbfcd4219ce77ff9ef7497d4ab1458e0 (patch)
tree0be6ff32ffab41e5a20503b0aa68ec72fd943644 /src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
parent2f931dece84c0f3f974cbf0d8863046b9268277d (diff)
KB66 Use type-safe templates everywhere.
Change-Id: I879e76e5bbaf91349f6df4637d9dc15291a3ada1
Diffstat (limited to 'src/main/resources/templates/benki/wiki/wikiPageRevisionList.html')
-rw-r--r--src/main/resources/templates/benki/wiki/wikiPageRevisionList.html21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
index eacad4b..ca84fcb 100644
--- a/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
+++ b/src/main/resources/templates/benki/wiki/wikiPageRevisionList.html
@@ -1,6 +1,3 @@
-{@eu.mulk.mulkcms2.benki.wiki.WikiPage page}
-{@java.lang.String title}
-
{#include base.html}
{#title}Revisions &#8212; {title} &#8212; Benki Wiki{/title}
@@ -25,17 +22,13 @@
</thead>
<tbody>
- {#with page}
- {#for revision in revisions}
- <tr>
- {#with revision}
- <td>{date.humanDateTime}</td>
- <td>{title}</td>
- <td>{author.firstName}</td>
- {/with}
- </tr>
- {/for}
- {/with}
+ {#for revision in page.revisions}
+ <tr>
+ <td>{revision.date.humanDateTime}</td>
+ <td>{revision.title}</td>
+ <td>{revision.author.firstName}</td>
+ </tr>
+ {/for}
</tbody>
</table>
</main>