summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
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
commit909471a6e58df80fbcb289d8bfcc2a1d6b4db2b6 (patch)
tree2c77235acc68c317b1788ad0285784752876bf5f /archaeological_context_records
parentadcd9fa8abff676b6d9e27fb75b16a1ae1d557b3 (diff)
downloadIshtar-909471a6e58df80fbcb289d8bfcc2a1d6b4db2b6.tar.bz2
Ishtar-909471a6e58df80fbcb289d8bfcc2a1d6b4db2b6.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.html20
-rw-r--r--archaeological_context_records/views.py2
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: