Skip to content

Commit 841861e

Browse files
committed
feat(tpl): enable filter for download mode
1 parent 032749a commit 841861e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/tpl/frontend/index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@
7272
</div>
7373
{{end}}
7474

75-
{{if .SubItemsHtml}}
76-
<div class="panel filter" id="panel-filter">
77-
<div class="form">
78-
<input type="text" accesskey="r" placeholder="{{.Trans.FilterLabel}}"/>
79-
<button type="reset">X</button>
80-
</div>
81-
</div>
82-
{{end}}
83-
8475
{{if .CanDelete}}
8576
<script type="text/javascript">
8677
function confirmDelete(form) {
@@ -95,6 +86,14 @@
9586
</script>
9687
{{end}}
9788
{{end}}
89+
{{if .SubItemsHtml}}
90+
<div class="panel filter" id="panel-filter">
91+
<div class="form">
92+
<input type="text" accesskey="r" placeholder="{{.Trans.FilterLabel}}"/>
93+
<button type="reset">X</button>
94+
</div>
95+
</div>
96+
{{end}}
9897
<ul class="item-list{{if .HasDeletable}} has-deletable{{end}}">
9998
{{if not $isDownload}}
10099
<li class="header">{{$dirSort := .SortState.DirSort}}{{$sortKey := .SortState.Key}}

0 commit comments

Comments
 (0)