mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 22:08:45 +00:00
Partially selectable reblogs visibility (fluoride required fix)
This commit is contained in:
parent
a678b620a1
commit
8c41878b6d
5 changed files with 36 additions and 8 deletions
|
@ -225,11 +225,27 @@
|
|||
<div class="status-action">
|
||||
{{$rt := "retweet"}} {{if .Reblogged}} {{$rt = "unretweet"}} {{end}}
|
||||
<form class="status-retweet" data-action="{{$rt}}" action="/{{$rt}}/{{.ID}}" method="post" target="_self">
|
||||
|
||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
||||
<input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
|
||||
<input type="submit" value="{{$rt}}" class="btn-link"
|
||||
<div class="more-container">
|
||||
|
||||
<input type="submit" value="{{$rt}}" class="btn-link"
|
||||
{{if or (eq .Visibility "private") (eq .Visibility "direct")}}title="this status cannot be retweeted" disabled{{end}}>
|
||||
<div class="more-content">
|
||||
{{if or (eq .Visibility "private") (eq .Visibility "direct")}}
|
||||
Locked
|
||||
{{else}}
|
||||
<input type="radio" id="retweet_visibility" name="retweet_visibility" value="public" checked>
|
||||
<label for="retweet_visibility">public</label>
|
||||
<input type="radio" id="retweet_visibility" name="retweet_visibility" value="unlisted">
|
||||
<label for="retweet_visibility">unlisted</label>
|
||||
<input type="radio" id="retweet_visibility" name="retweet_visibility" value="private">
|
||||
<label for="retweet_visibility">private</label>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<a class="status-retweet-count" href="/retweetedby/{{.ID}}" title="click to see the the list">
|
||||
{{if and (not $.Ctx.AntiDopamineMode) .ReblogsCount}}
|
||||
({{DisplayInteractionCount .ReblogsCount}})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue