agora-server/app/templates/links.html

68 lines
1.8 KiB
HTML

<!--
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<span class="links-header">Links</span><br />
<div class="links">
<div class="backlinks">
<span class="backlinks-header">← back</span><br />
{% for link in backlinks %}
<a href="/node/{{link}}">{{link}}</a><br />
{% endfor %}
<br />
</div>
<div class="pushlinks">
<span class="pushlinks-header">↑ pushing to this node</span><br />
{% if pushing_nodes %}
{% for node in pushing_nodes %}
<a href="/node/{{node.uri}}">{{node.uri}}</a><br />
{% endfor %}
{% else %}
(none)
{% endif %}
<br />
<br />
<!--
<div class="pulllinks">
<span class="pulllinks-header"> ↑pushing</span><br />
{% for node in pull_nodes %}
<a href="/node/{{node.uri}}">{{node.uri}}</a><br />
{% endfor %}
<br />
-->
<span class="pulllinks-header">↓ pulling this node</span><br />
{% if pulling_nodes %}
{% for node in pulling_nodes %}
<a href="/node/{{node.uri}}">{{node.uri}}</a><br />
{% endfor %}
{% else %}
(none)
{% endif %}
<br />
</div>
<div class="forwardlinks">
<span class="forwardlinks-header">→ forward</span><br />
{% for link in forwardlinks %}
<a href="/node/{{link}}">{{link}}</a><br />
{% endfor %}
<br />
</div>
</div>