Слияние WT-2: список загрузок и форма приёма (cancelled hide, значок типа, ellipsis)

This commit is contained in:
av
2026-07-11 09:32:52 +03:00
7 changed files with 74 additions and 20 deletions
+2 -2
View File
@@ -27,7 +27,7 @@
<label class="btn btn-file" title="Выбрать .torrent-файл">
<span data-file-label>.torrent</span>
<input type="file" name="torrent" accept=".torrent,application/x-bittorrent" hidden
onchange="var l=this.closest('.btn-file'),s=l.querySelector('[data-file-label]');s.textContent=this.files.length?this.files[0].name:'.torrent';l.classList.toggle('has-file',!!this.files.length)">
onchange="var l=this.closest('.btn-file'),s=l.querySelector('[data-file-label]'),f=this.files[0];s.textContent=f?f.name.replace(/\.torrent$/i,''):'.torrent';l.title=f?f.name:'Выбрать .torrent-файл';l.classList.toggle('has-file',!!f)">
</label>
<button class="btn btn-primary btn-lg" type="submit">Добавить</button>
</div>
@@ -50,7 +50,7 @@
</div>
<div class="toggle-line">
<a href="{{.ShowURL}}">{{if .ShowAll}}☑{{else}}☐{{end}} Показать всё, включая удалённые</a>
<a href="{{.ShowURL}}">{{if .ShowAll}}☑{{else}}☐{{end}} Показать всё, включая отменённые и удалённые</a>
</div>
{{end}}