From 487258c6152855f760ff03fbcd3e24861a710956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20De=CC=81le=CC=80ze?= Date: Tue, 22 Sep 2020 16:35:13 +0200 Subject: [PATCH] documents: fix thumbnail without external URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Shows thumbnail if no external URL is set, even if organisation is configured to point to external files. Co-Authored-by: Sébastien Délèze --- sonar/theme/templates/sonar/macros/macro.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sonar/theme/templates/sonar/macros/macro.html b/sonar/theme/templates/sonar/macros/macro.html index 7087f2bd..e13a1534 100644 --- a/sonar/theme/templates/sonar/macros/macro.html +++ b/sonar/theme/templates/sonar/macros/macro.html @@ -23,13 +23,11 @@
{% set restricted = file | is_file_restricted(record) %} {% if not restricted.restricted %} - {% if externalUrl %} - {% if file.external_url %} + {% if externalUrl and file.external_url %} {{ file_title }} - {% endif %} {% else %} @@ -38,7 +36,7 @@ {% endif %}

{{ file_title }}

- {% if not externalUrl %} + {% if not externalUrl or not file.external_url %}