aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-02-02 08:30:40 +0000
committerr <r@freesoftwareextremist.com>2020-02-02 08:30:40 +0000
commit5d58269132a27373ef8932ddcbbbf8b8637fa380 (patch)
treed1bb7dc2dc72a9fb4486d4214a570b3278133b48 /templates
parent4d9e0af373b3a92d04498070c6fc8f6c197fc9c0 (diff)
downloadbloat-5d58269132a27373ef8932ddcbbbf8b8637fa380.tar.gz
bloat-5d58269132a27373ef8932ddcbbbf8b8637fa380.zip
Add status deletion
Diffstat (limited to 'templates')
-rw-r--r--templates/status.tmpl6
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>