diff options
author | jikstra <jikstra@disroot.org> | 2021-09-10 13:51:08 +0000 |
---|---|---|
committer | jikstra <jikstra@disroot.org> | 2021-09-10 13:51:08 +0000 |
commit | 71ba52ec5dc84591ead1ac64e584f990b7d66615 (patch) | |
tree | bcd3590de3dfa80d57caba81855d75209f5593e8 /src/renderer.rs | |
parent | cargo fmt & cargo clippy (diff) | |
download | miniserve-71ba52ec5dc84591ead1ac64e584f990b7d66615.tar.gz miniserve-71ba52ec5dc84591ead1ac64e584f990b7d66615.zip |
Apply requested changes
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 45cb145..c0a243e 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -153,8 +153,8 @@ pub fn page( } } } + /// Renders the file listing -#[allow(clippy::too_many_arguments)] pub fn raw(entries: Vec<Entry>, is_root: bool) -> Markup { html! { (DOCTYPE) @@ -212,7 +212,7 @@ fn wget_download(title_path: &str, current_user: Option<&CurrentUser>) -> Markup }; return html! { - div.downloadWget { + div.downloadDirectory { p { "Download folder:" } div.cmd { (format!("wget -r -c -nH -np --cut-dirs={} -R \"index.html*\"{} \"http://{}/?raw=true\"", count, user_params, title_path)) } } |