Fix 500 in some subnode paths.

This commit is contained in:
2021-03-07 20:28:04 +01:00
parent e73f176d10
commit ca55564795
+2
View File
@@ -17,6 +17,7 @@
{% extends "base.html" %}
{% block content %}
{% if node %}
{% if not subnode and not node.subnodes %}
<div class="not-found">
No subnodes matching your query.
@@ -24,6 +25,7 @@ No subnodes matching your query.
Try going up to node <a href="/node/{{node.uri}}">[[{{node.uri}}]]</a> or perhaps <a href="/search">search</a>.
</div>
{% endif %}
{% endif %}
<!-- the new subnode route uses this, actually receiving a node whose subnodes are partial -->
{% if node %}