aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/user.tmpl33
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>