diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-08 11:38:25 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-24 12:06:09 +0200 |
commit | bd3d226928365674de631946fb62850c9866bb14 (patch) | |
tree | 59b6044371fee8a74cab3597a9e8aea5ca12c352 | |
parent | f9debe827556003e37493290b1e29fb5b9741e88 (diff) | |
download | Ishtar-bd3d226928365674de631946fb62850c9866bb14.tar.bz2 Ishtar-bd3d226928365674de631946fb62850c9866bb14.zip |
Images: only display item number when differs from one
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_image_detail.html | 2 | ||||
-rw-r--r-- | ishtar_common/templates/ishtar/sheet_document.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_image_detail.html b/ishtar_common/templates/ishtar/blocks/window_image_detail.html index b095c8b04..5be68eeef 100644 --- a/ishtar_common/templates/ishtar/blocks/window_image_detail.html +++ b/ishtar_common/templates/ishtar/blocks/window_image_detail.html @@ -112,7 +112,7 @@ </div> </div> {% endif %} -{% if image.item_number %} +{% if image.item_number and image.item_number != 1 %} <div class="row"> <div class="col-2"> <strong>{% trans "Number of items" %}</strong> diff --git a/ishtar_common/templates/ishtar/sheet_document.html b/ishtar_common/templates/ishtar/sheet_document.html index 3b178c29e..46b53cd26 100644 --- a/ishtar_common/templates/ishtar/sheet_document.html +++ b/ishtar_common/templates/ishtar/sheet_document.html @@ -31,7 +31,7 @@ {% field_flex "Scale" item.scale %} {% trans "Web link" as weblink_label %} {% field_flex_url weblink_label item.associated_url %} - {% field_flex "Item number" item.item_number %} + {% if item.number != 1 %}{% field_flex "Item number" item.item_number %}{% endif %} {% field_flex "Ref." item.reference %} {% field_flex "Internal ref." item.internal_reference %} {% field_flex "Creation date" item.creation_date %} |