From: Michael Tremer Date: Mon, 3 Dec 2018 18:45:13 +0000 (+0000) Subject: wiki: Show diff link only when changes are shown X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3de0b958dd5395657ec3fd139e9fcff7af9fafdb;p=ipfire.org.git wiki: Show diff link only when changes are shown Signed-off-by: Michael Tremer --- diff --git a/src/templates/wiki/modules/list.html b/src/templates/wiki/modules/list.html index 16bb15e7..9b2712cd 100644 --- a/src/templates/wiki/modules/list.html +++ b/src/templates/wiki/modules/list.html @@ -17,14 +17,16 @@ {{ page.author }} {% end %} - {% if page.previous_revision %} - - - - {% end %} + {% if show_changes %} + {% if page.changes %} + • {{ page.changes }} + {% end %} - {% if show_changes and page.changes %} - • {{ page.changes }} + {% if page.previous_revision %} + + + + {% end %} {% end %}

{% end %}