lykin/templates/peer_list.html.tera

19 lines
537 B
Plaintext

<div class="peers">
<ul>
{% for peer in peers -%}
<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 %}>
{% if peer.0.name %}
{{ peer.0.name }}
{% else %}
{{ peer.0.public_key }}
{% endif %}
</code>
<p>{% if peer.1 != "0" %}{{ peer.1 }}{% endif %}</p>
</a>
</li>
{%- endfor %}
</ul>
</div>