From e72a5563947749f35dcf58318377941439c12219 Mon Sep 17 00:00:00 2001 From: blek Date: Sat, 21 Oct 2023 13:43:37 +1000 Subject: [PATCH] block uploads/names/passwords on UI level according to config --- filed/static/assets/paint.css | 26 +++++- filed/templates/index.html | 148 +++++++++++++++++++--------------- 2 files changed, 107 insertions(+), 67 deletions(-) diff --git a/filed/static/assets/paint.css b/filed/static/assets/paint.css index e8d719b..22e00f5 100644 --- a/filed/static/assets/paint.css +++ b/filed/static/assets/paint.css @@ -281,4 +281,28 @@ input[type=email] { border-radius: 5px; padding: 2px 4px; outline: none; -} \ No newline at end of file +} + +.alert { + margin: 20px 0; + border: 1px solid var(--header-sec-color); + border-radius: 12px; +} + +.alert .alert-title { + margin: 0; + padding: var(--margin-y) var(--margin-x); + border-radius: 12px 12px 0 0; + border-bottom: 1px solid var(--header-sec-color); + background: var(--view-color); +} + +.alert .alert-text { + padding: var(--margin-y) var(--margin-x); + border-radius: 0 0 12px 12px; + margin: 0; +} + +.alert.danger .alert-title { + background: #602020; +} diff --git a/filed/templates/index.html b/filed/templates/index.html index 1efab65..04f7fcc 100644 --- a/filed/templates/index.html +++ b/filed/templates/index.html @@ -28,45 +28,50 @@ -

- - - - - {{ env.instanceurl }}/ + {%- if conf.files.allow_custom_names -%} +

+ + + + + {{ env.instanceurl }}/ + + - - -

- - - - - - - -
- - - -
+

+ {%- endif -%} + + {%- if conf.files.allow_pass_protection -%} + + + + + + + +
+ + + +
+ {%- endif -%}

-

- - +

+

+ - - -

-

- -

+

+ {%- endif -%}