qtify other pages + fixed position on qts

working on showing the max upload size, just figuring out how to make it look good and where to position it.

there's probably a better way to include qts in all of these pages without having to pass all of these variables
This commit is contained in:
2026-11-14 17:39:00 -05:00
parent ee454661cc
commit 53b0aac403
9 changed files with 70 additions and 24 deletions
+15 -11
View File
@@ -26,17 +26,21 @@
<label for="type-paste">paste</label>
<div class="file-panel">
<form action="/upload?return=html" method="post" enctype="multipart/form-data">
<label class="muted" for="file-expiry">expiry</label>
<select id="file-expiry" name="expiry">
{{range .Expiries}}
<option value="{{.Label}}">{{.Label}}</option>
{{end}}
</select>
<label class="muted" for="file-id-length">id length</label>
<select id="file-id-length" name="idlength">
<option value="long">16 characters</option>
<option value="short">10 characters</option>
</select>
<div>
<label class="muted" for="file-expiry">expiry</label>
<select id="file-expiry" name="expiry">
{{range .Expiries}}
<option value="{{.Label}}">{{.Label}}</option>
{{end}}
</select>
<label class="muted" for="file-id-length">id length</label>
<select id="file-id-length" name="idlength">
<option value="long">16 characters</option>
<option value="short">10 characters</option>
</select>
<span style="margin-left: auto;">max {{.FileMaxSize}}</span>
</div>
<input id="upload-file" type="file" required name="file" />
<button type="submit" class="btn">upload file</button>
</form>