aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/user.tmpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/user.tmpl b/templates/user.tmpl
index 848ca0a..b8b3754 100644
--- a/templates/user.tmpl
+++ b/templates/user.tmpl
@@ -74,7 +74,19 @@
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="submit" value="mute" class="btn-link">
</form>
- {{end}}
+ {{end}}
+ -
+ {{if .User.Pleroma.Relationship.ShowingReblogs}}
+ <form class="d-inline" action="/follow/{{.User.ID}}?reblogs=false" method="post">
+ <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
+ <input type="submit" value="hide retweets" class="btn-link">
+ </form>
+ {{else}}
+ <form class="d-inline" action="/follow/{{.User.ID}}" method="post">
+ <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
+ <input type="submit" value="show retweets" class="btn-link">
+ </form>
+ {{end}}
</div>
{{end}}
<div>