diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-28 16:29:45 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-28 16:29:45 +0100 |
commit | f13c6223b5a6fe3ee4a138a5263de85b8103de8d (patch) | |
tree | b2e5e1f62ba3511523f9a388099b91812cb6844b /archaeological_finds/templates | |
parent | 7bb29e60c83b74ea108c2d27ca5ff600c1533e2f (diff) | |
download | Ishtar-f13c6223b5a6fe3ee4a138a5263de85b8103de8d.tar.bz2 Ishtar-f13c6223b5a6fe3ee4a138a5263de85b8103de8d.zip |
Sheet find: display other images when no main image is found
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index bc6f6320b..ff0ccb2b0 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -83,7 +83,7 @@ <div class="tab-pane fade show active" id="{{window_id}}-basefind" role="tabpanel" aria-labelledby="{{window_id}}-basefind-tab"> - {% with has_image=item.main_image %} + {% with has_image=item.images.count %} {% if has_image %} <div class="clearfix"> <div class="card float-left col-12 col-md-6 col-lg-4"> |