Quick fix some rendering issues.
This commit is contained in:
parent
0c85e5f8d7
commit
33995d8327
3 changed files with 17 additions and 13 deletions
|
@ -80,19 +80,22 @@ nav { font-family: sans-serif}
|
|||
.subnode-header {
|
||||
font-style: italic;
|
||||
margin-bottom: 1em;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.subnode-footer {
|
||||
font-style: italic;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.subnode-id {
|
||||
text-align: left;
|
||||
align: left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.subnode-links {
|
||||
text-align: left;
|
||||
align: left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.links {
|
||||
|
|
|
@ -35,8 +35,7 @@ Try listing all <a href="/nodes">nodes</a> or perhaps <a href="/search">search</
|
|||
{% for subnode in node.subnodes %}
|
||||
<div class="subnode">
|
||||
<div class="subnode-header">
|
||||
<span><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span>
|
||||
<span class="subnode-links">(by <a href="/@{{subnode.user}}">@{{subnode.user}}</a>)</span>
|
||||
<span class="subnode-id"><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span> <span class="subnode-links">by <a href="/@{{subnode.user}}">@{{subnode.user}}</a></span>
|
||||
</div>
|
||||
{{ subnode.render()|linkify|safe }}
|
||||
</div>
|
||||
|
@ -50,7 +49,9 @@ Try listing all <a href="/nodes">nodes</a> or perhaps <a href="/search">search</
|
|||
|
||||
{% for subnode in node.subnodes %}
|
||||
<div class="subnode">
|
||||
<span class="subnode-header"><strong>Subnode</strong> <a href="{{subnode.url}}">{{subnode.uri}}</a> by <a href="/@{{subnode.user}}">@{{subnode.user}}</a></span>
|
||||
<div class="subnode-header">
|
||||
<span class="subnode-id"><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span> <span class="subnode-links">by <a href="/@{{subnode.user}}">@{{subnode.user}}</a></span>
|
||||
</div>
|
||||
{{ subnode.render()|linkify|safe }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
{% if not subnode and not node %}
|
||||
<div class="message">
|
||||
No subnodes found matching '{{subnode}}'.
|
||||
{% if not subnode and not node.subnodes %}
|
||||
<div class="not-found">
|
||||
No subnodes matching your query.
|
||||
<br /><br />
|
||||
Try listing <a href="/nodes">nodes</a> or perhaps <a href="/search">search</a>.
|
||||
Try going up to node <a href="/node/{{node.uri}}">[[{{node.uri}}]]</a> or perhaps <a href="/search">search</a>.
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
@ -30,8 +30,8 @@ Try listing <a href="/nodes">nodes</a> or perhaps <a href="/search">search</a>.
|
|||
{% for subnode in node.subnodes %}
|
||||
<div class="subnode">
|
||||
<div class="subnode-header">
|
||||
<span><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span>
|
||||
<span class="subnode-links">(<a href="/@{{subnode.user}}">user</a>) (<a href="/node/{{subnode.wikilink}}">up to node</a>) (<a href="{{subnode.url}}">source</a>)</span>
|
||||
<span><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span><br />
|
||||
<span class="subnode-links">by <a href="/@{{subnode.user}}">@{{subnode.user}}</a> | up to <span class="wikilink-marker">[[</span><a href="/node/{{subnode.wikilink}}">{{subnode.wikilink}}</a><span class="wikilink-marker">]]</span> | <a href="{{subnode.url}}">source</a></span>
|
||||
</div>
|
||||
{{ subnode.render()|linkify|safe }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue