diff options
author | r <r@freesoftwareextremist.com> | 2020-02-02 07:24:06 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-02-02 07:24:06 +0000 |
commit | 4d9e0af373b3a92d04498070c6fc8f6c197fc9c0 (patch) | |
tree | cdd8f8f3b2decbcf85bad4235bb4b914f39bbaad /templates | |
parent | c702a2b501769697576d601875d1db4553eeff12 (diff) | |
download | bloat-4d9e0af373b3a92d04498070c6fc8f6c197fc9c0.tar.gz bloat-4d9e0af373b3a92d04498070c6fc8f6c197fc9c0.zip |
Add conversation muting
Diffstat (limited to 'templates')
-rw-r--r-- | templates/status.tmpl | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl index 3945cc8..1ea475e 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -24,12 +24,27 @@ <a href="/user/{{.Account.ID}}" > <span class="status-uname"> {{.Account.Acct}} </span> </a> - <span class="status-visibility"> - {{.Visibility}} - </span> - <a class="remote-link" href="{{.URL}}" target="_blank" title="source"> - source - </a> + <div class="more-container" title="more"> + <div class="remote-link" title="mute"> + {{.Visibility}} + </div> + <div class="more-content"> + <a class="more-link" href="{{.URL}}" target="_blank" title="mute"> + source + </a> + {{if .Muted}} + <form action="/unmuteconv/{{.ID}}" method="post"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="submit" value="unmute" class="btn-link more-link" title="unmute"> + </form> + {{else}} + <form action="/muteconv/{{.ID}}" method="post"> + <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> + <input type="submit" value="mute" class="btn-link more-link" title="mute"> + </form> + {{end}} + </div> + </div> </div> <div class="status-reply-container"> {{if .InReplyToID}} |