diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-14 21:06:08 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-14 21:06:59 +0200 |
commit | bb4a57dcfa0c107c414c39a70521cd557a8eb215 (patch) | |
tree | 70a40286ddb371bcdaf30819c56827d89c39b220 /ishtar_common/templates | |
parent | af5ff7546e622378867badccb9500764e089b01b (diff) | |
download | Ishtar-bb4a57dcfa0c107c414c39a70521cd557a8eb215.tar.bz2 Ishtar-bb4a57dcfa0c107c414c39a70521cd557a8eb215.zip |
Add a link to the sheet in image galleries
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_image.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_image.html b/ishtar_common/templates/ishtar/blocks/window_image.html index 66e6a9e2f..dcf0c2f5e 100644 --- a/ishtar_common/templates/ishtar/blocks/window_image.html +++ b/ishtar_common/templates/ishtar/blocks/window_image.html @@ -1,14 +1,16 @@ -{% load i18n %}{% if item.images.count %} +{% load i18n link_to_window %}{% if item.images.count %} {% if output == "ODT" or output == "PDF"%} {% include "ishtar/blocks/window_image_odt.html" %} {% else %} +{% trans "Sheet" as sheet_lbl %} <div class="lightgallery-captions"> {% if item.main_image %}{% with image=item.main_image %} <div id="lightgallery-{{window_id}}-caption-0"> <span class="close">×</span> {% include "ishtar/blocks/window_image_detail.html" %} - <a href="{% url 'edit-document' image.pk %}"> - {% trans "Modify" %} <i class="fa fa-pencil"></i> + {{image|simple_link_to_window:sheet_lbl}} + <a href="{% url 'edit-document' image.pk %}" class="display_details"> + <i class="fa fa-pencil"></i> <small>{% trans "Modify" %}</small> </a> </div> {% endwith %}{% endif %} @@ -16,8 +18,9 @@ <div id="lightgallery-{{window_id}}-caption-{{forloop.counter}}"> <span class="close">×</span> {% include "ishtar/blocks/window_image_detail.html" %} - <a href="{% url 'edit-document' image.pk %}"> - {% trans "Modify" %} <i class="fa fa-pencil"></i> + {{image|simple_link_to_window:sheet_lbl}} + <a href="{% url 'edit-document' image.pk %}" class="display_details"> + <i class="fa fa-pencil"></i> <small>{% trans "Modify" %}</small> </a> </div> {% endfor %} |