lykin/templates/peer_list.html.tera

19 lines
527 B
Plaintext
Raw Permalink Normal View History

2022-08-11 07:28:37 +00:00
<div class="peers">
<ul>
{% for peer in peers -%}
2022-08-11 07:28:37 +00:00
<li>
<a class="flex-container" href="/posts/{{ peer.0.public_key | urlencode_strict }}">
<code{% if selected_peer and peer.0.public_key == selected_peer %} style="font-weight: bold;"{% endif %}>
2022-08-11 16:12:44 +00:00
{% if peer.0.name %}
{{ peer.0.name }}
2022-08-11 16:12:44 +00:00
{% else %}
{{ peer.0.public_key }}
2022-08-11 16:12:44 +00:00
{% endif %}
2022-08-11 07:28:37 +00:00
</code>
2022-08-11 16:12:44 +00:00
{% if peer.1 != "0" %}<p>{{ peer.1 }}</p>{% endif %}
</a>
</li>
{%- endfor %}
</ul>
</div>