aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/empty-search-results.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/templates/empty-search-results.html')
-rw-r--r--src/main/resources/templates/empty-search-results.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/resources/templates/empty-search-results.html b/src/main/resources/templates/empty-search-results.html
new file mode 100644
index 0000000..a26aa37
--- /dev/null
+++ b/src/main/resources/templates/empty-search-results.html
@@ -0,0 +1,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> \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage