From 1711b8f81a0e3985c6274dd6e27e5b249e25eb13 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 12 Nov 2018 23:29:11 +0000 Subject: [PATCH] wiki: Add edit button and link to old revisions Signed-off-by: Michael Tremer --- src/templates/wiki/page.html | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/src/templates/wiki/page.html b/src/templates/wiki/page.html index 17f24f4e..b63740d8 100644 --- a/src/templates/wiki/page.html +++ b/src/templates/wiki/page.html @@ -21,15 +21,33 @@ -

- {{ _("Last modified %s") % locale.format_date(page.timestamp) }} + {% if current_user %} + + {{ _("Edit Page") }} + + {% end %} + +

+ - {% if page.author %} - • +
+

+ {{ _("Last modified %s") % locale.format_date(page.timestamp) }} - - {{ page.author }} - - {% end %} -

+ {% if page.author %} + • + + + {{ page.author }} + + {% end %} +

+
+
{% end block %} -- 2.47.3