22 lines
1.3 KiB
Plaintext
22 lines
1.3 KiB
Plaintext
<div class="nav">
|
|
<div class="flex-container">
|
|
<a href="/" title="Download latest posts"><img src="/icons/download.png" style="width: 55px;"></a>
|
|
{% if post_is_selected %}
|
|
{% if post.read %}
|
|
{% set mark_unread_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/unread" %}
|
|
<a href={{ mark_unread_url }} style="margin-left: 20px;" title="Mark as unread"><img src="/icons/unread_post.png" style="width: 55px;"></a>
|
|
{% else %}
|
|
{% set mark_read_url = "/posts/" ~ selected_peer_encoded ~ "/" ~ selected_post_encoded ~ "/read" %}
|
|
<a href={{ mark_read_url }} style="margin-left: 20px;" title="Mark as read"><img src="/icons/read_post.png" style="width: 55px;"></a>
|
|
{% endif %}
|
|
<a href="/" style="margin-left: 20px;" title="Delete post"><img src="/icons/delete_post.png" style="width: 55px;"></a>
|
|
{% endif %}
|
|
<form class="flex-container" style="margin-left: auto; margin-right: 10px;" action="/subscribe" method="post">
|
|
<label for="public_key">Public Key</label>
|
|
<input type="text" id="public_key" name="public_key" size=50 maxlength=53>
|
|
<input type="submit" value="Subscribe">
|
|
<input type="submit" value="Unsubscribe" formaction="/unsubscribe">
|
|
</form>
|
|
</div>
|
|
</div>
|