summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-06-03 16:26:02 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:59:31 +0200
commitfc24549ebdc04b084480502c2ddec82fdd107c40 (patch)
treed10fe7bee90336f5a4111ec3b572ee377e431ba9 /ishtar_common/templates
parenta2261ecf9b596f4a40b2682ed3d5dd450d8ed44d (diff)
downloadIshtar-fc24549ebdc04b084480502c2ddec82fdd107c40.tar.bz2
Ishtar-fc24549ebdc04b084480502c2ddec82fdd107c40.zip
Import delete: do not crash when no SLUG is available for an attached item
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/ishtar/import_delete.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/import_delete.html b/ishtar_common/templates/ishtar/import_delete.html
index 4844d89d8..db3df8fe4 100644
--- a/ishtar_common/templates/ishtar/import_delete.html
+++ b/ishtar_common/templates/ishtar/import_delete.html
@@ -28,12 +28,14 @@
{% else %}
<hr>
{% endifchanged %}
+ {% if imported.SLUG %}
{% url "show-"|add:imported.SLUG imported.pk "" as current_url %}
{% if current_url %}
<a class="display_details_inline" href="#" onclick='load_window("{% url "show-"|add:imported.SLUG imported.pk "" %}")'>
<i class="fa fa-info-circle" aria-hidden="true"></i>
</a>
{% endif %}
+ {% endif %}
{{ imported }}
{% endfor %}
</div>