diff --git a/templates/admin/base.html b/templates/admin/base.html new file mode 100644 index 0000000..2a1529a --- /dev/null +++ b/templates/admin/base.html @@ -0,0 +1,87 @@ +{% extends 'base.html' %} +{% block title %}{% block _title %}{% endblock %} - Admin{% endblock %} +{% set adminLink = 'active' %} +{% block additionalHeadItems %} + + + +{% endblock %} +{% block content %} + + +
+
+ +
+ {% block _content %}{% endblock %} +
+
+{% endblock %} +{% block scripts %} + + +{% block _scripts %} +{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/templates/admin/categories/blacklist.html b/templates/admin/categories/blacklist.html new file mode 100644 index 0000000..8f1959f --- /dev/null +++ b/templates/admin/categories/blacklist.html @@ -0,0 +1,18 @@ +{% extends 'admin/base.html' %} +{% block _title %}Blacklist{% endblock %} +{% set blacklist_link = 'active' %} +{% block _content %} +
+ +
+ +

Blacklisted words for questions; one word per line

+ + +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/admin/categories/customize.html b/templates/admin/categories/customize.html new file mode 100644 index 0000000..a57540e --- /dev/null +++ b/templates/admin/categories/customize.html @@ -0,0 +1,149 @@ +{% extends 'admin/base.html' %} +{% block _title %}Customize{% endblock %} +{% set custom_link = 'active' %} +{% block _content %} +

Customize

+

Favicon

+
+

Current favicon: {{ cfg.instance.title }}'s icon

+
+ + +
+
+ +
+
+
+

Accent color

+ {#

Color

#} +
+ + +

Default: #6345d9

+
+
+ + +

Default: #7a63e3

+
+ {# brain doesn't feel like implementing this rn (9/27/24) +

Background

+
+ + +

Default: #ffffff

+
+
+ + +

Default: #202020

+
+ #} +
+ + + +
+ {# +
+ + + +
+ #} +

Navbar link style

+
+ + + + +
+

Homepage layout

+
+ + + + +
+

Info box layout

+
+ + + + +
+

Trimmed content

+
+ + +

Maximum length of content before it gets trimmed (used in sharing options); set to 0 to disable

+
+
+ +
+
+{% endblock %} +{% block _scripts %} + + + +{% endblock %} \ No newline at end of file diff --git a/templates/admin/categories/emojis.html b/templates/admin/categories/emojis.html new file mode 100644 index 0000000..fb06720 --- /dev/null +++ b/templates/admin/categories/emojis.html @@ -0,0 +1,83 @@ +{% extends 'admin/base.html' %} +{% block _title %}Emojis{% endblock %} +{% set emojis_link = 'active' %} +{% block _content %} +

Custom emojis

+

Upload

+
+
+ + +
+
+ +
+
+
+
+
+ + +

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

+
+
+ +
+
+

Manage

+

Emojis

+
+ + + + + + + + + + + {% for emoji in emojis %} + {% include 'snippets/admin/emojiRow.html' %} + {% endfor %} + +
ImageNameFilenameActions
+
+

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 %} +
+ + + + + + {% if json_pack %} + + + {% endif %} + + + + + + {% for pack in packs %} + {% with json_pack = json_pack %} + {% include 'snippets/admin/packRow.html' %} + {% endwith %} + {% endfor %} + +
ImageNameAuthorReleasedFolderActions
+
+ {% else %} +

No emoji packs uploaded

+ {% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/admin/categories/general.html b/templates/admin/categories/general.html new file mode 100644 index 0000000..9f71042 --- /dev/null +++ b/templates/admin/categories/general.html @@ -0,0 +1,79 @@ +{% extends 'admin/base.html' %} +{% block _title %}General{% endblock %} +{% set general_link = 'active' %} +{% block _content %} +
+

General

+
+ + +

Max length of a question in characters; questions extending this character limit will not be added to the database

+
+
+ + +

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

+
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+{% endblock %} +{% block _scripts %} + +{% endblock %} \ No newline at end of file diff --git a/templates/admin/categories/instance.html b/templates/admin/categories/instance.html new file mode 100644 index 0000000..fab4d1b --- /dev/null +++ b/templates/admin/categories/instance.html @@ -0,0 +1,46 @@ +{% extends 'admin/base.html' %} +{% block _title %}Information{% endblock %} +{% set info_link = 'active' %} +{% block _content %} +
+

Information

+
+ + +

Title of this CatAsk instance

+
+
+ + +

Description of this CatAsk instance

+
+
+ + +

Rules of this CatAsk instance

+
+
+ + +

Image that's going to be used in a link preview

+
+
+ + +

Full URL to homepage of this CatAsk instance without a trailing slash

+
+
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/admin/login.html b/templates/admin/login.html index fe0e83d..8e705f3 100644 --- a/templates/admin/login.html +++ b/templates/admin/login.html @@ -7,10 +7,14 @@

Login to {{ cfg.instance.title }}

-
+
+
+ + +