not found

This commit is contained in:
2021-02-27 21:14:32 +01:00
parent 88c114c5cc
commit 1c7f4c77a6
3 changed files with 30 additions and 13 deletions
+4 -5
View File
@@ -56,7 +56,7 @@ nav { font-family: sans-serif}
padding: 10px;
}
.subnode, .links {
.subnode, .links, .not-found {
background: #12091a;
/* background: #150d38; */
color: #cfcfcf;
@@ -81,11 +81,10 @@ nav { font-family: sans-serif}
}
.not-found {
/*
background: #2f1f1f;
color: #cfcfcf;
padding: 0.5em;
margin-bottom: 10px;
border-radius: 10px;
*/
background: #690000;
}
/*.subnode li { margin: 0.8em 1.2em; }*/
+1 -1
View File
@@ -29,7 +29,7 @@
<link rel="search" type="application/opensearchdescription+xml"
title="Agora" href={{url_for('agora.search_xml')}}>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/screen-dark.css')}}?uncached8" id="theme-link" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/screen-dark.css')}}?uncached9" id="theme-link" />
<script type=text/javascript src="{{url_for('static', filename='js/main.js')}}"></script>
<!-- considering this way of integrating hypothesis, although I like "standard" (sidebar) mode.
<script type="application/json" class="js-hypothesis-config">
+25 -7
View File
@@ -15,13 +15,31 @@
-->
{% if not node.subnodes and not node.pushed_subnodes() %}
<div class="not-found">
No node found at [[{{node.uri}}]].
<br /><br />
If you <a href="https://flancia.org/go/agora">contributed a matching subnode</a> with basename '{{node.uri}}' to the Agora (e.g. a note named {{node}}.md or an image named {{node}}.jpg), this node would exist :)
<br /><br />
You can try searching or listing <a href="/nodes">all nodes</a>.<br /><br />
Existing permutations are optimistically pulled below.<br/>
<div class="node">
<span class="node-header">No Agora node found at [[{{qstr}}]]... yet :)</span>
<div class="not-found">
<ul>
<li>
If you <a href="https://flancia.org/go/agora">contributed content</a> related to '{{qstr}}' to the Agora ), it would show up here :)
<ul>
<li>
For example a note named <code>{{node}}.md</code> or an image named <code>{{node}}.jpg</code>. <a href="/node/sign-up"
</li>
<li>
<strong>Sign up now</strong></a> and start participating!
</li>
<li>
You can also contribute anonymously to the public Stoa down below; it is world writeable. Feel free to write something about {{qstr}}; whatever it <strong>means</strong> to you.
</li>
</ul>
</li>
<li>
You can try searching on (see below).
</li>
<li>
Some existing permutations might be optimistically pulled below.<br/>
</li>
</div>
</div>
{% endif %}