diff --git a/filed/static/assets/alert.css b/filed/static/assets/alert.css new file mode 100644 index 0000000..6228e95 --- /dev/null +++ b/filed/static/assets/alert.css @@ -0,0 +1,23 @@ +.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; +} \ No newline at end of file diff --git a/filed/static/assets/paint.css b/filed/static/assets/paint.css index fe346a2..9b1c2f8 100644 --- a/filed/static/assets/paint.css +++ b/filed/static/assets/paint.css @@ -282,27 +282,3 @@ input[type=email] { padding: 2px 4px; outline: none; } - -.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 0d886c6..325cd97 100644 --- a/filed/templates/index.html +++ b/filed/templates/index.html @@ -1,5 +1,13 @@ {% extends "base.html" %} +{% block head %} + + {%- if ! conf.files.allow_uploads -%} + + {%- endif -%} + +{% endblock %} + {% block body %}