diff options
author | r <r@freesoftwareextremist.com> | 2020-04-19 05:57:40 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-04-19 05:57:40 +0000 |
commit | 91d87b01752a35f67508d5eb6f804946d7f9f7f2 (patch) | |
tree | 65cfc14c69d4ae3b554b600457c39293bf1a79c3 /templates | |
parent | 04af1b93dc95d761b4e05a448c9d86ac67623ff6 (diff) | |
download | bloat-91d87b01752a35f67508d5eb6f804946d7f9f7f2.tar.gz bloat-91d87b01752a35f67508d5eb6f804946d7f9f7f2.zip |
Add account {hide,show}retweets
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user.tmpl | 14 |
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> |