Added the capability to edit messages

This commit is contained in:
Yusur 2019-10-14 19:53:33 +02:00
parent 5e7c6097d4
commit 755e7b70be
9 changed files with 85 additions and 5 deletions

View file

@ -14,4 +14,14 @@
{% endif %}
-
<time datetime="{{ message.pub_date.isoformat() }}" title="{{ message.pub_date.ctime() }}">{{ message.pub_date | human_date }}</time>
-
<a href="javascript:void(0);" onclick="showHideMessageOptions({{ message.id }});" class="message-options-showhide"></a>
</p>
<ul class="message-options">
{% if message.user == current_user %}
<li><a href="/edit/{{ message.id }}">Edit or change privacy</a></li>
<!--li><a href="/confirm_delete/{{ message.id }}">Delete</a></li-->
{% else %}
<!--li><a href="/report/{{ message.id }}">Report</a></li-->
{% endif %}
</ul>