aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-04-17 17:19:11 +0000
committerr <r@freesoftwareextremist.com>2020-04-17 17:31:32 +0000
commit04af1b93dc95d761b4e05a448c9d86ac67623ff6 (patch)
tree75da80bfb467874b4fd94617f9c7c4cbd3cdbb85 /templates
parentccdb5ef051bfcc9e96f4b0ce98a32735eb48d1c4 (diff)
downloadbloat-04af1b93dc95d761b4e05a448c9d86ac67623ff6.tar.gz
bloat-04af1b93dc95d761b4e05a448c9d86ac67623ff6.zip
Add account {,un}subscribe
Diffstat (limited to 'templates')
-rw-r--r--templates/user.tmpl28
1 files changed, 20 insertions, 8 deletions
diff --git a/templates/user.tmpl b/templates/user.tmpl
index 6ea79f7..848ca0a 100644
--- a/templates/user.tmpl
+++ b/templates/user.tmpl
@@ -25,39 +25,51 @@
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="submit" value="unfollow" class="btn-link">
</form>
- {{else}}
+ {{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}}
+ {{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}}
+ {{end}}
+ -
+ {{if .User.Pleroma.Relationship.Subscribing}}
+ <form class="d-inline" action="/unsubscribe/{{.User.ID}}" method="post">
+ <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
+ <input type="submit" value="unsubscribe" class="btn-link">
+ </form>
+ {{else}}
+ <form class="d-inline" action="/subscribe/{{.User.ID}}" method="post">
+ <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
+ <input type="submit" value="subscribe" class="btn-link">
+ </form>
+ {{end}}
</div>
<div>
- {{if .User.Pleroma.Relationship.Blocking}}
+ {{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="unblock" class="btn-link">
</form>
- {{else}}
+ {{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}}
+ {{end}}
-
- {{if .User.Pleroma.Relationship.Muting}}
+ {{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}}
+ {{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">