mirror of
https://github.com/flancian/garden.git
synced 2026-08-08 07:26:21 +00:00
Fix 500 in some subnode paths.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user