From d792215fa583c5c790421f67a6c88e1cdf862b19 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 23 Aug 2019 19:00:30 +0200 Subject: Improve find page --- showcase/templates/showcase/item-find.html | 64 ++++++++++++++++++++---------- 1 file changed, 43 insertions(+), 21 deletions(-) (limited to 'showcase') diff --git a/showcase/templates/showcase/item-find.html b/showcase/templates/showcase/item-find.html index 5d34092..90b0c66 100644 --- a/showcase/templates/showcase/item-find.html +++ b/showcase/templates/showcase/item-find.html @@ -39,27 +39,49 @@
-
- {% if data.images.0.thumbnail %} -
- -
- {% endif %} -

{{data.denomination}}

- {% with data.base_finds.0.context_record.site as site %} -
{% trans "Archaeological site" %}
-

{{site.name}} {% if site.discovery_date %}({{site.discovery_date}}){% endif %} -
{{site.towns.0}}

- {% if site.shipwreck_name %}

Naufrage du : {{site.shipwreck_name}} - {% if site.sinking_date %} en {{site.sinking_date}}{% endif %}

- {% endif %} - {% if site.periods %} -

{% trans "Period(s):" %} {{site.periods|join:" ; "}}

- {% endif %} - {% if site.remains %} -

{% trans "Remain(s):" %} {{site.remains|join:" ; "}}

- {% endif %} +
+
+ {% if data.images.0.thumbnail %} +
+ +
+ {% endif %} +

{{data.denomination}}

+ +
+ {% if data.description %} +

{{data.description}}

+ {% endif %} + {% if data.object_types %} +

{% trans "Object type:" %} {{data.object_types|join:" ; "}}

+ {% endif %} + {% if data.materials %} +

{% trans "Materials:" %} {{data.materials|join:" ; "}}

+ {% endif %} + {% if data.datings %}

{% trans "Period(s):" %} + {% for dating in data.datings %}{% if forloop.counter0 %} ; {% endif %}{{dating.period}}{% endfor %} +

{% endif %} +
- {% endwith %} +
+ {% with data.base_finds.0.context_record.site as site %} + {% with data.base_finds.0.context_record.operation as operation %} +
{% trans "Archaeological site / Operation" %}
+

{{site.name}} {% if site.discovery_date %}({{site.discovery_date}}){% endif %} +
{{site.towns.0}}

+ {% if operation.year %}

{% trans "Year of the survey:" %} {{operation.year}}

{% endif %} + {% if site.shipwreck_name %}

{% trans "Shipwreck" %} : {{site.shipwreck_name}} + {% if site.sinking_date %} {% trans "sinking" %} {{site.sinking_date}}{% endif %}

+ {% endif %} + {% if site.periods %} +

{% trans "Period(s):" %} {{site.periods|join:" ; "}}

+ {% endif %} + {% if site.remains %} +

{% trans "Remain(s):" %} {{site.remains|join:" ; "}}

+ {% endif %} + {% endwith %} + {% endwith %} +
+
{% endblock %} -- cgit v1.2.3