diff options
Diffstat (limited to 'templates/status.tmpl')
-rw-r--r-- | templates/status.tmpl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl index 1e3d514..6c255a0 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -46,6 +46,19 @@ <input type="submit" value="mute" class="btn-link more-link"> </form> {{end}} + {{if .Bookmarked}} + <form action="/unbookmark/{{.ID}}" method="post" target="_self"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}"> + <input type="submit" value="unbookmark" class="btn-link more-link"> + </form> + {{else}} + <form action="/bookmark/{{.ID}}" method="post" target="_self"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}"> + <input type="submit" value="bookmark" class="btn-link more-link"> + </form> + {{end}} {{if eq $.Ctx.UserID .Account.ID}} <form action="/delete/{{.ID}}" method="post" target="_self"> <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |