lykin/templates/post_list.html.tera

15 lines
678 B
Plaintext
Raw Normal View History

<div class="posts">
{% if posts %}
<ul style="padding-left: 25px; padding-right: 25px;">
{% for post in posts -%}
<li style="list-style: none; font-size: 12px; margin-bottom: 5px;{% if selected_post and post.key == selected_post %} background-color: #FF6300;{% endif %}">
<a class="flex-container" style="justify-content: space-between;{% if not post.read %} font-weight: bold;{% endif %}" href="/posts/{{ selected_peer | urlencode_strict }}/{{ post.key | urlencode_strict }}">
<code style="word-wrap: anywhere;">{{ post.key }}</code>
<p style="margin: 0;">{{ post.date }}</p>
</a>
</li>
{%- endfor %}
</ul>
{% endif %}
</div>