diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-05 18:30:24 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-05 18:31:52 +0200 |
commit | 7fb1ff25e2491e94c3446a401e644de9793006f5 (patch) | |
tree | 54a97773eef1b633895480a8b8caeb768bf7b43a /archaeological_operations/templates | |
parent | d3d84ed7cc5ff3cb9c164838c78cfcee73fbc44e (diff) | |
download | Ishtar-7fb1ff25e2491e94c3446a401e644de9793006f5.tar.bz2 Ishtar-7fb1ff25e2491e94c3446a401e644de9793006f5.zip |
Add images for operation, context records and sources (refs #2927, refs #351)
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index f8421c830..1b2a1961d 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -6,6 +6,10 @@ {% block content %} {% window_nav item window_id 'show-operation' 'operation_modify' 'show-historized-operation' 'revert-operation' previous next %} +{% if item.image %} +<a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}" class='photo'><img src='{{item.thumbnail.url}}'/></a> +{% endif%} + {% if item.virtual_operation %} <p class='alert'><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> {% trans "This operation is virtual." %}</p> {% endif %} |