aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/renderer.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 66fc714..3039dc7 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -14,12 +14,18 @@ pub fn page(
page_parent: Option<String>,
sort_method: Option<listing::SortingMethod>,
sort_order: Option<listing::SortingOrder>,
+ base: &str,
) -> Markup {
html! {
(page_header(page_title))
body {
span #top { }
- h1.title { (page_title) }
+ h1 { (page_title) }
+ 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))
}