summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks/window_image_detail.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-28 11:25:14 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-28 11:25:14 +0200
commite3ba8a0f2b59ca2671747a1da897ed42d59cfde9 (patch)
tree9c76d7cc39a0919e3a3a172157a555817bd62f4b /ishtar_common/templates/ishtar/blocks/window_image_detail.html
parentac860a4d14c9aa9580753fb0c832199fcb24ec95 (diff)
downloadIshtar-e3ba8a0f2b59ca2671747a1da897ed42d59cfde9.tar.bz2
Ishtar-e3ba8a0f2b59ca2671747a1da897ed42d59cfde9.zip
Migrate from xhtml2odt to pandoc for ODT generation (refs #4178)
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/window_image_detail.html')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_image_detail.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_image_detail.html b/ishtar_common/templates/ishtar/blocks/window_image_detail.html
new file mode 100644
index 000000000..c64d72ac2
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_image_detail.html
@@ -0,0 +1,74 @@
+{% load i18n %}
+ {% if image.title %}<h3>{{image.title}}</h3>{% endif %}
+ {% if image.description %}<p class="raw-description">
+ {{image.description}}
+ </p>{% endif %}
+ {% if image.licences.count %}
+ <div class="row">
+ <div class="col-2">
+ <strong>{% trans "Licenses" %}</strong>
+ </div>
+ <div class="col-10">
+ {% for license in image.licenses.all %}
+ {% if not forloop.first %} ; {% endif %}{% if license.url %}<a href="{{license.url}}">{% endif %}
+ {{license}}
+ {% if license.url %}</a>{% endif %}
+ {% endfor %}
+ </div>
+ </div>
+ {% endif %}
+ {% if image.authors.count or image.authors_raw %}
+ <div class="row">
+ <div class="col-2">
+ <strong>{% trans "Authors" %}</strong>
+ </div>
+ <div class="col-10">
+ {% for author in image.authors.all %}
+ {% if not forloop.first %} ; {% endif %}{{author}}{% endfor %}
+ {% if image.authors_raw %}
+ {% if image.authors.count %} ; {% endif %}
+ {{image.authors_raw}}
+ {% endif %}
+ </div>
+ </div>
+ {% endif %}
+ {% if image.image_type %}
+ <div class="row">
+ <div class="col-2">
+ <strong>{% trans "Type" %}</strong>
+ </div>
+ <div class="col-10">
+ {{image.image_type}}
+ </div>
+ </div>
+ {% endif %}
+ {% if image.reference %}
+ <div class="row">
+ <div class="col-2">
+ <strong>{% trans "Ref." %}</strong>
+ </div>
+ <div class="col-10">
+ {{image.reference}}
+ </div>
+ </div>
+ {% endif %}
+ {% if image.internal_reference %}
+ <div class="row">
+ <div class="col-2">
+ <strong>{% trans "Internal ref." %}</strong>
+ </div>
+ <div class="col-10">
+ {{image.internal_reference}}
+ </div>
+ </div>
+ {% endif %}
+ {% if image.creation_date %}
+ <div class="row">
+ <div class="col-2">
+ <strong>{% trans "Creation date" %}</strong>
+ </div>
+ <div class="col-10">
+ {{image.creation_date}}
+ </div>
+ </div>
+ {% endif %}