From: Michael Tremer Date: Mon, 12 Nov 2018 23:29:11 +0000 (+0000) Subject: wiki: Add edit button and link to old revisions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1711b8f81a0e3985c6274dd6e27e5b249e25eb13;p=ipfire.org.git wiki: Add edit button and link to old revisions Signed-off-by: Michael Tremer --- 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 %}