summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/templates/welcome.html6
-rw-r--r--ishtar_common/utils.py2
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 @@
<h2>{% trans "Welcome in Ishtar, open source software for management and inventory of archaeological data" %}</h2>
<div class="row">
- <div class="col col-lg-4">
- {{random_image}}
- </div>
- <div class="col col-lg-8">
+ {{random_image}}
+ <div class="col col-lg-9">
<div class="card">
<div class="card-body">
<p>{% trans "Some useful links:" %}</p>
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"""
+ <div class="col col-lg-3">
<div class="card">
<div id="lightgallery-rand-img">
<a href="{}">
@@ -193,6 +194,7 @@ def _get_image_link(item):
</a><br/>
</div>
</div>
+ </div>
<script type="text/javascript">
lightGallery(document.getElementById('lightgallery-rand-img'));
</script>""".format(