diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-09 19:02:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-09 19:02:09 +0200 |
commit | b43132e292e6efac11fa3cb6232e4ccee85583c0 (patch) | |
tree | 2c77235acc68c317b1788ad0285784752876bf5f /archaeological_context_records | |
parent | 21969f700a79a957072bac80298ece7d6d9b75d4 (diff) | |
download | Ishtar-b43132e292e6efac11fa3cb6232e4ccee85583c0.tar.bz2 Ishtar-b43132e292e6efac11fa3cb6232e4ccee85583c0.zip |
Graph generation: manage link - display raw SVG - scale SVG - manage reopening in a specific tab
Diffstat (limited to 'archaeological_context_records')
-rw-r--r-- | archaeological_context_records/templates/ishtar/sheet_contextrecord.html | 20 | ||||
-rw-r--r-- | archaeological_context_records/views.py | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 284ea7f32..e8c9e9a43 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -258,11 +258,11 @@ {% if item.relation_image or DOT_GENERATION %} {% with gen_url='generate-relation-image-contextrecord' %} - <h3>{% trans "Diagram of statigraphic relations - full" %}</h3> - {% with relation_type="" %} - {% with relation_image=item.relation_image %} - {% with relation_png=item.relation_bitmap_image %} - {% with relation_dot=item.relation_dot %} + <h3>{% trans "Diagram of statigraphic relations - above" %}</h3> + {% with relation_type="above" %} + {% with relation_image=item.relation_image_above %} + {% with relation_png=item.relation_bitmap_image_above %} + {% with relation_dot=item.relation_dot_above %} {% include "ishtar/blocks/sheet_relation_image.html" %} {% endwith %}{% endwith %}{% endwith %}{% endwith %} @@ -274,11 +274,11 @@ {% include "ishtar/blocks/sheet_relation_image.html" %} {% endwith %}{% endwith %}{% endwith %}{% endwith %} - <h3>{% trans "Diagram of statigraphic relations - above" %}</h3> - {% with relation_type="above" %} - {% with relation_image=item.relation_image_above %} - {% with relation_png=item.relation_bitmap_image_above %} - {% with relation_dot=item.relation_dot_above %} + <h3>{% trans "Diagram of statigraphic relations - full" %}</h3> + {% with relation_type="" %} + {% with relation_image=item.relation_image %} + {% with relation_png=item.relation_bitmap_image %} + {% with relation_dot=item.relation_dot %} {% include "ishtar/blocks/sheet_relation_image.html" %} {% endwith %}{% endwith %}{% endwith %}{% endwith %} diff --git a/archaeological_context_records/views.py b/archaeological_context_records/views.py index fbe382623..5b858a76a 100644 --- a/archaeological_context_records/views.py +++ b/archaeological_context_records/views.py @@ -168,7 +168,7 @@ class GenerateRelationImage(IshtarMixin, LoginRequiredMixin, RedirectView): def get_redirect_url(self, *args, **kwargs): return reverse('display-item', - args=[self.model.SLUG, self.item.pk]) + args=[self.model.SLUG, self.item.pk]) + "#relations" def get(self, request, *args, **kwargs): try: |