summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne@peacefrogs.net>2019-08-23 19:00:30 +0200
committerÉtienne Loks <etienne@peacefrogs.net>2019-08-23 19:00:30 +0200
commitd792215fa583c5c790421f67a6c88e1cdf862b19 (patch)
treee4ec53bf9922dc6a8978f47a8d46cad2f88f177d
parentd17e1e3bc008dc7cc5db18f2f1af1ccb96f301e5 (diff)
downloadishtar-pergamon-d792215fa583c5c790421f67a6c88e1cdf862b19.tar.bz2
ishtar-pergamon-d792215fa583c5c790421f67a6c88e1cdf862b19.zip
Improve find page
-rw-r--r--showcase/templates/showcase/item-find.html64
1 files changed, 43 insertions, 21 deletions
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 @@
</div>
<hr>
-<div class="clearfix show-case-detail">
- {% if data.images.0.thumbnail %}
- <div class="float-left pr-2">
- <img src="{{data.images.0.thumbnail}}" class="img-fluid img-thumbnail">
- </div>
- {% endif %}
- <h4 class="pt-2 text-right">{{data.denomination}}</h4>
- {% with data.base_finds.0.context_record.site as site %}
- <h5>{% trans "Archaeological site" %}</h5>
- <p>{{site.name}} {% if site.discovery_date %}({{site.discovery_date}}){% endif %}
- <br><small>{{site.towns.0}}</small></p>
- {% if site.shipwreck_name %}<p><em>Naufrage du : </em>{{site.shipwreck_name}}
- {% if site.sinking_date %} <em>en</em> {{site.sinking_date}}{% endif %}</p>
- {% endif %}
- {% if site.periods %}
- <p><em>{% trans "Period(s):" %}</em> {{site.periods|join:" ; "}}</p>
- {% endif %}
- {% if site.remains %}
- <p><em>{% trans "Remain(s):" %}</em> {{site.remains|join:" ; "}}</p>
- {% endif %}
+<div class="card clearfix show-case-detail">
+ <div class="card-body">
+ {% if data.images.0.thumbnail %}
+ <div class="float-left pr-2" style="max-width:50%">
+ <img src="{{data.images.0.thumbnail}}" class="img-fluid img-thumbnail">
+ </div>
+ {% endif %}
+ <h4 class="pt-2 text-right">{{data.denomination}}</h4>
+
+ <div>
+ {% if data.description %}
+ <p>{{data.description}}</p>
+ {% endif %}
+ {% if data.object_types %}
+ <p><em>{% trans "Object type:" %}</em> {{data.object_types|join:" ; "}}</p>
+ {% endif %}
+ {% if data.materials %}
+ <p><em>{% trans "Materials:" %}</em> {{data.materials|join:" ; "}}</p>
+ {% endif %}
+ {% if data.datings %}<p><em>{% trans "Period(s):" %}</em>
+ {% for dating in data.datings %}{% if forloop.counter0 %} ; {% endif %}{{dating.period}}{% endfor %}
+ </p>{% endif %}
+ </div>
- {% endwith %}
+ <div class="mt-2">
+ {% with data.base_finds.0.context_record.site as site %}
+ {% with data.base_finds.0.context_record.operation as operation %}
+ <h5>{% trans "Archaeological site / Operation" %}</h5>
+ <p>{{site.name}} {% if site.discovery_date %}({{site.discovery_date}}){% endif %}
+ <br><small>{{site.towns.0}}</small></p>
+ {% if operation.year %}<p><em>{% trans "Year of the survey:" %}</em> {{operation.year}}</p>{% endif %}
+ {% if site.shipwreck_name %}<p><em>{% trans "Shipwreck" %} : </em>{{site.shipwreck_name}}
+ {% if site.sinking_date %} <em>{% trans "sinking" %}</em> {{site.sinking_date}}{% endif %}</p>
+ {% endif %}
+ {% if site.periods %}
+ <p><em>{% trans "Period(s):" %}</em> {{site.periods|join:" ; "}}</p>
+ {% endif %}
+ {% if site.remains %}
+ <p><em>{% trans "Remain(s):" %}</em> {{site.remains|join:" ; "}}</p>
+ {% endif %}
+ {% endwith %}
+ {% endwith %}
+ </div>
+ </div>
</div>
{% endblock %}