aboutsummaryrefslogtreecommitdiff
path: root/templates/mute.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mute.tmpl')
-rw-r--r--templates/mute.tmpl29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/mute.tmpl b/templates/mute.tmpl
new file mode 100644
index 0000000..47d0533
--- /dev/null
+++ b/templates/mute.tmpl
@@ -0,0 +1,29 @@
+{{with .Data}}
+{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
+<div class="page-title"> Mute {{.User.Acct}} </div>
+
+<form action="/mute/{{.User.ID}}" method="POST">
+ <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
+ <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
+ <div class="settings-form-field">
+ <input id="notifications" name="notifications" type="checkbox" value="true" checked>
+ <label for="notifications"> Mute notifications </label>
+ </div>
+ <div class="settings-form-field">
+ <label for="duration"> Auto unmute </label>
+ <select id="duration" name="duration">
+ <option value="0" selected>Disabled</option>
+ <option value="300">After 5m</option>
+ <option value="1800">After 30m</option>
+ <option value="3600">After 1h</option>
+ <option value="21600">After 6h</option>
+ <option value="86400">After 1d</option>
+ <option value="259200">After 3d</option>
+ <option value="604800">After 7d</option>
+ </select>
+ </div>
+ <button type="submit"> Mute </button>
+</form>
+
+{{template "footer.tmpl"}}
+{{end}}