diff options
author | r <r@freesoftwareextremist.com> | 2020-02-02 08:30:40 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-02-02 08:30:40 +0000 |
commit | 5d58269132a27373ef8932ddcbbbf8b8637fa380 (patch) | |
tree | d1bb7dc2dc72a9fb4486d4214a570b3278133b48 /templates | |
parent | 4d9e0af373b3a92d04498070c6fc8f6c197fc9c0 (diff) | |
download | bloat-5d58269132a27373ef8932ddcbbbf8b8637fa380.tar.gz bloat-5d58269132a27373ef8932ddcbbbf8b8637fa380.zip |
Add status deletion
Diffstat (limited to 'templates')
-rw-r--r-- | templates/status.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl index 1ea475e..75b399b 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -43,6 +43,12 @@ <input type="submit" value="mute" class="btn-link more-link" title="mute"> </form> {{end}} + {{if eq $.Ctx.UserID .Account.ID}} + <form action="/delete/{{.ID}}" method="post"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="submit" value="delete" class="btn-link more-link" title="delete"> + </form> + {{end}} </div> </div> </div> |