aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/renderer.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 3039dc7..6b3fb9f 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -14,6 +14,7 @@ pub fn page(
page_parent: Option<String>,
sort_method: Option<listing::SortingMethod>,
sort_order: Option<listing::SortingOrder>,
+ file_upload: bool,
base: &str,
) -> Markup {
html! {
@@ -21,11 +22,13 @@ pub fn page(
body {
span #top { }
h1 { (page_title) }
+ @if file_upload {
form action={"/upload?path=" (base)} method="POST" enctype="multipart/form-data" {
p { "Select file to upload" }
input type="file" name="file_to_upload" {}
input type="submit" value="Upload file" {}
}
+ }
div.download {
(archive_button(archive::CompressionMethod::TarGz))
}