From bd3d226928365674de631946fb62850c9866bb14 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 8 Oct 2018 11:38:25 +0200 Subject: Images: only display item number when differs from one --- ishtar_common/templates/ishtar/blocks/window_image_detail.html | 2 +- ishtar_common/templates/ishtar/sheet_document.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common') 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 @@ {% endif %} -{% if image.item_number %} +{% if image.item_number and image.item_number != 1 %}
{% trans "Number of items" %} 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 %} -- cgit v1.2.3