minor template indentation changes
This commit is contained in:
parent
d67d0f566f
commit
1cf6ec52a1
|
@ -4,13 +4,13 @@
|
||||||
<li>
|
<li>
|
||||||
<a class="flex-container" href="/posts/{{ peer.0.public_key | urlencode_strict }}">
|
<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 %}>
|
<code{% if selected_peer and peer.0.public_key == selected_peer %} style="font-weight: bold;"{% endif %}>
|
||||||
{% if peer.0.name %}
|
{% if peer.0.name %}
|
||||||
{{ peer.0.name }}
|
{{ peer.0.name }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ peer.0.public_key }}
|
{{ peer.0.public_key }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</code>
|
</code>
|
||||||
<p>{% if peer.1 != "0" %}{{ peer.1 }}{% endif %}</p>
|
{% if peer.1 != "0" %}<p>{{ peer.1 }}</p>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{% if post %}
|
{% if post %}
|
||||||
{{ post.text | trim_start_matches(pat='"') | trim_end_matches(pat='"') | trim }}
|
{{ post.text | trim_start_matches(pat='"') | trim_end_matches(pat='"') | trim }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,37 +4,37 @@
|
||||||
<img src="/icons/download.png">
|
<img src="/icons/download.png">
|
||||||
</a>
|
</a>
|
||||||
{% if post_is_selected %}
|
{% if post_is_selected %}
|
||||||
{% if post.read %}
|
{% if post.read %}
|
||||||
{% set mark_unread_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/unread" %}
|
{% set mark_unread_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/unread" %}
|
||||||
<a class="disabled icon" title="Mark as read">
|
<a class="disabled icon" title="Mark as read">
|
||||||
<img src="/icons/read_post.png">
|
<img src="/icons/read_post.png">
|
||||||
</a>
|
</a>
|
||||||
<a href={{ mark_unread_url }} class="icon" title="Mark as unread">
|
<a href={{ mark_unread_url }} class="icon" title="Mark as unread">
|
||||||
<img src="/icons/unread_post.png">
|
<img src="/icons/unread_post.png">
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
|
||||||
{% set mark_read_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/read" %}
|
|
||||||
<a href={{ mark_read_url }} class="icon" title="Mark as read">
|
|
||||||
<img src="/icons/read_post.png">
|
|
||||||
</a>
|
|
||||||
<a class="disabled icon" title="Mark as unread">
|
|
||||||
<img src="/icons/unread_post.png">
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
{% set delete_post_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/delete" %}
|
|
||||||
<a href={{ delete_post_url }} class="icon" title="Delete post">
|
|
||||||
<img src="/icons/delete_post.png">
|
|
||||||
</a>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="disabled icon" title="Mark as read">
|
{% set mark_read_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/read" %}
|
||||||
<img src="/icons/read_post.png">
|
<a href={{ mark_read_url }} class="icon" title="Mark as read">
|
||||||
</a>
|
<img src="/icons/read_post.png">
|
||||||
<a class="disabled icon" title="Mark as unread">
|
</a>
|
||||||
<img src="/icons/unread_post.png">
|
<a class="disabled icon" title="Mark as unread">
|
||||||
</a>
|
<img src="/icons/unread_post.png">
|
||||||
<a class="disabled icon" title="Delete post">
|
</a>
|
||||||
<img src="/icons/delete_post.png">
|
{% endif %}
|
||||||
</a>
|
{% set delete_post_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/delete" %}
|
||||||
|
<a href={{ delete_post_url }} class="icon" title="Delete post">
|
||||||
|
<img src="/icons/delete_post.png">
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="disabled icon" title="Mark as read">
|
||||||
|
<img src="/icons/read_post.png">
|
||||||
|
</a>
|
||||||
|
<a class="disabled icon" title="Mark as unread">
|
||||||
|
<img src="/icons/unread_post.png">
|
||||||
|
</a>
|
||||||
|
<a class="disabled icon" title="Delete post">
|
||||||
|
<img src="/icons/delete_post.png">
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form class="flex-container" action="/subscribe" method="post">
|
<form class="flex-container" action="/subscribe" method="post">
|
||||||
<label for="public_key">Public Key</label>
|
<label for="public_key">Public Key</label>
|
||||||
|
|
Loading…
Reference in New Issue