From 3f44abe721d08b74976fe108fedbacc08fd3fdb0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 12 Feb 2018 10:12:57 +0100 Subject: Template: adapt random image --- ishtar_common/templates/welcome.html | 6 ++---- ishtar_common/utils.py | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ishtar_common/templates/welcome.html b/ishtar_common/templates/welcome.html index 59a53d759..4783b369c 100644 --- a/ishtar_common/templates/welcome.html +++ b/ishtar_common/templates/welcome.html @@ -2,10 +2,8 @@

{% trans "Welcome in Ishtar, open source software for management and inventory of archaeological data" %}

-
- {{random_image}} -
-
+ {{random_image}} +

{% trans "Some useful links:" %}

diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index d13b31df5..0fd540bb9 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -176,6 +176,7 @@ def _get_image_link(item): if not item.thumbnail or not item.thumbnail.url: return "" return mark_safe(u""" + """.format( -- cgit v1.2.3