From aae198496dad6c8d8d2e006203dfc30ce382104d Mon Sep 17 00:00:00 2001 From: mst Date: Tue, 26 Nov 2024 15:07:40 +0300 Subject: [PATCH] some slight ui improvements --- templates/admin/categories/emojis.html | 16 ++++++++++------ templates/admin/categories/general.html | 22 +++++++++++++--------- templates/admin/login.html | 1 + templates/snippets/q-card-text.html | 6 ++++-- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/templates/admin/categories/emojis.html b/templates/admin/categories/emojis.html index fb06720..2ff7c70 100644 --- a/templates/admin/categories/emojis.html +++ b/templates/admin/categories/emojis.html @@ -3,7 +3,7 @@ {% set emojis_link = 'active' %} {% block _content %}

Custom emojis

-

Upload

+

Upload

@@ -18,13 +18,13 @@

-
+

Supported archive formats: .zip, .tar, .tar.gz, .tar.bz2, .tar.xz

-
+
-

Manage

+

Manage

Emojis

+ {% if emojis %}
@@ -51,6 +52,9 @@
+ {% else %} +

No emojis uploaded

+ {% endif %}

Emoji packs

Please note that if meta.json is not found in the archive, preview images are selected by first emoji name to appear alphabetically, so they may not be accurate sometimes

{% if packs %} @@ -70,7 +74,7 @@ {% for pack in packs %} - {% with json_pack = json_pack %} + {% with json_pack = json_pack, index = loop.index - 1 %} {% include 'snippets/admin/packRow.html' %} {% endwith %} {% endfor %} @@ -80,4 +84,4 @@ {% else %}

No emoji packs uploaded

{% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/admin/categories/general.html b/templates/admin/categories/general.html index 9f71042..1dc9e71 100644 --- a/templates/admin/categories/general.html +++ b/templates/admin/categories/general.html @@ -14,47 +14,51 @@

This name will be used for questions asked to you by anonymous users

-
+
+ role="switch" + {% if cfg.lockInbox %}checked{% endif %}>
-
+
+ role="switch" + {% if cfg.allowAnonQuestions %}checked{% endif %}>
-
+
+ role="switch" + {% if cfg.noDeleteConfirm %}checked{% endif %}>
-
+
+ role="switch" + {% if cfg.showQuestionCount %}checked{% endif %}>
@@ -76,4 +80,4 @@ }); }); -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/admin/login.html b/templates/admin/login.html index 8e705f3..70d8a12 100644 --- a/templates/admin/login.html +++ b/templates/admin/login.html @@ -1,5 +1,6 @@ {% extends 'base.html' %} {% block title %}Admin Login{% endblock %} +{% set loginLink = 'active' %} {% block content %}
diff --git a/templates/snippets/q-card-text.html b/templates/snippets/q-card-text.html index 6e5e1ba..7a76672 100644 --- a/templates/snippets/q-card-text.html +++ b/templates/snippets/q-card-text.html @@ -1,7 +1,7 @@
{% if question.cw %}

{{ question.cw }}

-
+
{{ question.content | render_markdown }}
{% else %} - {{ question.content | render_markdown }} +
+ {{ question.content | render_markdown }} +
{% endif %}
\ No newline at end of file