diff options
author | r <r@freesoftwareextremist.com> | 2020-02-08 10:49:06 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-02-08 10:49:06 +0000 |
commit | 1e44d5d3d50c850505065ef16bc513a207c0656c (patch) | |
tree | 3f530fb102ff60075446c76b16bf28d97ecbad9d /templates | |
parent | 9d2e24a7dedc311862f6c0b5c20e9f6eff221caf (diff) | |
download | bloat-1e44d5d3d50c850505065ef16bc513a207c0656c.tar.gz bloat-1e44d5d3d50c850505065ef16bc513a207c0656c.zip |
Add account muting and blocking
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user.tmpl | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/templates/user.tmpl b/templates/user.tmpl index 3042672..fb80de4 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -25,17 +25,42 @@ <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> <input type="submit" value="unfollow" class="btn-link"> </form> - {{end}} + {{else}} + <form class="d-inline" action="/follow/{{.User.ID}}" method="post"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link"> + </form> + {{end}} {{if .User.Pleroma.Relationship.Requested}} + - <form class="d-inline" action="/unfollow/{{.User.ID}}" method="post"> <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> <input type="submit" value="cancel request" class="btn-link"> </form> {{end}} - {{if not .User.Pleroma.Relationship.Following}} - <form class="d-inline" action="/follow/{{.User.ID}}" method="post"> + </div> + <div> + {{if .User.Pleroma.Relationship.Blocking}} + <form class="d-inline" action="/unblock/{{.User.ID}}" method="post"> <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> - <input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link"> + <input type="submit" value="unblock" class="btn-link"> + </form> + {{else}} + <form class="d-inline" action="/block/{{.User.ID}}" method="post"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="submit" value="block" class="btn-link"> + </form> + {{end}} + - + {{if .User.Pleroma.Relationship.Muting}} + <form class="d-inline" action="/unmute/{{.User.ID}}" method="post"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="submit" value="unmute" class="btn-link"> + </form> + {{else}} + <form class="d-inline" action="/mute/{{.User.ID}}" method="post"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="submit" value="mute" class="btn-link"> </form> {{end}} </div> |