From 3de0b958dd5395657ec3fd139e9fcff7af9fafdb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 3 Dec 2018 18:45:13 +0000 Subject: [PATCH] wiki: Show diff link only when changes are shown Signed-off-by: Michael Tremer --- src/templates/wiki/modules/list.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 %} -- 2.47.2