diff options
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> |