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 -%}