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 {
|
.subnode-header {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
gap: 5px;
|
}
|
||||||
|
|
||||||
|
.subnode-footer {
|
||||||
|
font-style: italic;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subnode-id {
|
.subnode-id {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
align: left;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subnode-links {
|
.subnode-links {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
align: left;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.links {
|
.links {
|
||||||
|
|
|
@ -35,8 +35,7 @@ Try listing all <a href="/nodes">nodes</a> or perhaps <a href="/search">search</
|
||||||
{% for subnode in node.subnodes %}
|
{% for subnode in node.subnodes %}
|
||||||
<div class="subnode">
|
<div class="subnode">
|
||||||
<div class="subnode-header">
|
<div class="subnode-header">
|
||||||
<span><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{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>
|
||||||
<span class="subnode-links">(by <a href="/@{{subnode.user}}">@{{subnode.user}}</a>)</span>
|
|
||||||
</div>
|
</div>
|
||||||
{{ subnode.render()|linkify|safe }}
|
{{ subnode.render()|linkify|safe }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -50,7 +49,9 @@ Try listing all <a href="/nodes">nodes</a> or perhaps <a href="/search">search</
|
||||||
|
|
||||||
{% for subnode in node.subnodes %}
|
{% for subnode in node.subnodes %}
|
||||||
<div class="subnode">
|
<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 }}
|
{{ subnode.render()|linkify|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if not subnode and not node %}
|
{% if not subnode and not node.subnodes %}
|
||||||
<div class="message">
|
<div class="not-found">
|
||||||
No subnodes found matching '{{subnode}}'.
|
No subnodes matching your query.
|
||||||
<br /><br />
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ Try listing <a href="/nodes">nodes</a> or perhaps <a href="/search">search</a>.
|
||||||
{% for subnode in node.subnodes %}
|
{% for subnode in node.subnodes %}
|
||||||
<div class="subnode">
|
<div class="subnode">
|
||||||
<div class="subnode-header">
|
<div class="subnode-header">
|
||||||
<span><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span>
|
<span><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span><br />
|
||||||
<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 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>
|
</div>
|
||||||
{{ subnode.render()|linkify|safe }}
|
{{ subnode.render()|linkify|safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue