diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-06 13:02:42 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-06 13:02:42 +0100 |
commit | 584309ffdf2a1fc0901d3653b97f02ec95f09e70 (patch) | |
tree | 2f5caf6ce04024c457fad326db629b0ba9abab0c /archaeological_finds/templates | |
parent | cdd25d0d6ad07ff89f292e5a7081c22fbf842bf0 (diff) | |
download | Ishtar-584309ffdf2a1fc0901d3653b97f02ec95f09e70.tar.bz2 Ishtar-584309ffdf2a1fc0901d3653b97f02ec95f09e70.zip |
Sheets: use lightgallery to display images on sheets
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 4 | ||||
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_treatment.html | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 237a4d748..67cd479c3 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -12,9 +12,7 @@ <div class="row"> <div class="offset-lg-4 col-lg-4 offset-md-3 col-md-6 offset-sm-1 col-sm-10 col-12"> <div class="card"> - {% if item.image %} - <img class='card-img-top' src="{{item.thumbnail.url}}"> - {% endif%} + {% include "ishtar/blocks/window_image.html" %} <div class="card-body"> <p class="card-text"> <p class="window-refs" title="{% trans 'Free ID' %}">{{ item.label|default:"" }}</p> diff --git a/archaeological_finds/templates/ishtar/sheet_treatment.html b/archaeological_finds/templates/ishtar/sheet_treatment.html index c1da714c2..21f0e5370 100644 --- a/archaeological_finds/templates/ishtar/sheet_treatment.html +++ b/archaeological_finds/templates/ishtar/sheet_treatment.html @@ -12,9 +12,7 @@ <div class="row"> <div class="offset-lg-4 col-lg-4 offset-md-3 col-md-6 offset-sm-1 col-sm-10 col-12"> <div class="card"> - {% if item.image %} - <img class='card-img-top' src="{{item.thumbnail.url}}"> - {% endif%} + {% include "ishtar/blocks/window_image.html" %} <div class="card-body"> <p class="card-text"> <p class="window-refs">{{ item.label|default:"" }}</p> |