feat(handlers/render): Display edit form for user's own posts

Displays an edit form for posts that are owned by a user (which is
currently defined as "email addresses match").
This commit is contained in:
Vincent Ambo 2018-04-15 23:09:44 +02:00
parent 7a55786552
commit 705097dab9
5 changed files with 63 additions and 2 deletions

View file

@ -42,7 +42,7 @@
<div class="d-inline-flex flex-row mt-auto ml-auto">
{%- if post.editable %}
<a href="#edit" class="badge badge-light border m-1 p-1">Edit</a>
<a href="/post/{{ post.id }}/edit" class="badge badge-light border m-1 p-1">Edit</a>
{% endif -%}
<a href="#quote" class="badge badge-light border m-1 p-1">Quote</a>
</div>