diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2024-01-13 04:36:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 04:36:58 +0000 |
commit | c78db05996af04e52d6b16f961a8b247a60c3e88 (patch) | |
tree | 53149c8ee8aa68fa680d23e5011a4c3adfd5b5de /src/renderer.rs | |
parent | Use tokio::fs instead of std::fs to enable async file operations (fixes #445) (diff) | |
parent | Set default sorting order and method with arguments (diff) | |
download | miniserve-c78db05996af04e52d6b16f961a8b247a60c3e88.tar.gz miniserve-c78db05996af04e52d6b16f961a8b247a60c3e88.zip |
Merge pull request #1308 from ElliottLandsborough/set_sorting_order_with_arguments
Set default sorting order and method with arguments
Diffstat (limited to 'src/renderer.rs')
-rw-r--r-- | src/renderer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 5a591f0..3b62704 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -459,7 +459,7 @@ fn build_link( ) -> Markup { let mut link = format!("?sort={name}&order=asc"); let mut help = format!("Sort by {name} in ascending order"); - let mut chevron = chevron_up(); + let mut chevron = chevron_down(); let mut class = ""; if let Some(method) = sort_method { @@ -469,7 +469,7 @@ fn build_link( if order.to_string() == "asc" { link = format!("?sort={name}&order=desc"); help = format!("Sort by {name} in descending order"); - chevron = chevron_down(); + chevron = chevron_up(); } } } |