diff options
author | elandsborough <elliott.landsborough@gmail.com> | 2024-01-10 19:53:36 +0000 |
---|---|---|
committer | ElliottLandsborough <elliott.landsborough@gmail.com> | 2024-01-13 03:28:24 +0000 |
commit | e5e3ad2fed80bea3f2c9c90f87a405bca077691e (patch) | |
tree | 80c37e10ad52880d35efb55fbead0f17afa83323 /src/renderer.rs | |
parent | Skip newline test case on Windows (diff) | |
download | miniserve-e5e3ad2fed80bea3f2c9c90f87a405bca077691e.tar.gz miniserve-e5e3ad2fed80bea3f2c9c90f87a405bca077691e.zip |
Set default sorting order and method with arguments
Diffstat (limited to '')
-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(); } } } |