From 5fc980a0b67b89689342b184ba1f8bb68f4533f0 Mon Sep 17 00:00:00 2001 From: blek Date: Fri, 27 Oct 2023 00:50:02 +1000 Subject: [PATCH] add password request on upload page --- filed/static/assets/alert.css | 4 ++++ filed/templates/index.html | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/filed/static/assets/alert.css b/filed/static/assets/alert.css index 6228e95..55bc69d 100644 --- a/filed/static/assets/alert.css +++ b/filed/static/assets/alert.css @@ -20,4 +20,8 @@ .alert.danger .alert-title { background: #602020; +} + +.alert.blue .alert-title { + background: #203050; } \ No newline at end of file diff --git a/filed/templates/index.html b/filed/templates/index.html index 794e74f..bba9521 100644 --- a/filed/templates/index.html +++ b/filed/templates/index.html @@ -114,6 +114,24 @@

{%- else -%} + + {%- if let Some(pass) = conf.files.upload_pass -%} +
+

+ Upload password +

+
+

This instance requires a password to upload a file.

+

+ +

+
+
+ {%- endif -%} +