From 47070cfa62a9b6db976b01cceb402f7f3749c85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20De=CC=81le=CC=80ze?= Date: Mon, 30 Nov 2020 08:26:58 +0100 Subject: [PATCH] documents: add a back button in detail views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adds a button to go back to search results in documents detail views. * Reduces the size of `Back to SONAR` button in organisation's context. * Closes #383. Co-Authored-by: Sébastien Délèze --- sonar/modules/documents/templates/documents/record.html | 5 +++++ sonar/theme/templates/sonar/partial/organisation.html | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sonar/modules/documents/templates/documents/record.html b/sonar/modules/documents/templates/documents/record.html index f4081af9..ed26ea48 100644 --- a/sonar/modules/documents/templates/documents/record.html +++ b/sonar/modules/documents/templates/documents/record.html @@ -24,6 +24,11 @@ {% set files = record.get_files_list() %}
+
{% if files and files | length > 0 %} diff --git a/sonar/theme/templates/sonar/partial/organisation.html b/sonar/theme/templates/sonar/partial/organisation.html index f0a7f5d0..5a366be7 100644 --- a/sonar/theme/templates/sonar/partial/organisation.html +++ b/sonar/theme/templates/sonar/partial/organisation.html @@ -28,9 +28,9 @@

{{ g.organisation.name }}