aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/empty-search-results.html
blob: a26aa3742f4f79218df84e660b006e8e58f1f780 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="empty-state">
    <div class="empty-state-icon">
        <i class="fas fa-search"></i>
    </div>
    <h3>no matches found</h3>
    <p>try different search terms or clear your filters</p>
    <button class="btn btn-primary" onclick="clearFilters()">
        <i class="fas fa-times"></i> clear filters
    </button>
</div>
<script>
    document.getElementById('count-value').textContent = '0';
    function clearFilters() {
        document.querySelector('input[name="search"]').value = '';
        document.querySelector('select[name="mimeType"]').value = '';
        document.querySelector('select[name="sortBy"]').value = 'created_at';
        htmx.ajax('GET', '/api/files?dir=' + currentDirectoryId, {
            target: '#file-content',
            indicator: '#loading-spinner'
        });
    }
</script>
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage