From 8533ce72e9b291f49c2cf8bd3cbab5944f0fbed5 Mon Sep 17 00:00:00 2001 From: Djeex Date: Thu, 21 Aug 2025 23:12:10 +0200 Subject: [PATCH] Flask webui templates --- src/webui/gallery-editor/index.html | 79 +++++---------------------- src/webui/index.html | 77 ++++----------------------- src/webui/site-info/index.html | 82 +++++------------------------ src/webui/template/base.html | 72 +++++++++++++++++++++++++ src/webui/theme-editor/index.html | 81 +++++----------------------- 5 files changed, 121 insertions(+), 270 deletions(-) create mode 100644 src/webui/template/base.html diff --git a/src/webui/gallery-editor/index.html b/src/webui/gallery-editor/index.html index 4dae423..e081b62 100644 --- a/src/webui/gallery-editor/index.html +++ b/src/webui/gallery-editor/index.html @@ -1,43 +1,9 @@ - - - - - - Lumeex - - - - - - -
-
+ +{% extends "template/base.html" %} + +{% block title %}Gallery Editor{% endblock %} + +{% block content %}

Gallery editor

@@ -98,29 +64,10 @@
- - - - - \ No newline at end of file + +{% endblock %} + +{% block scripts %} + + +{% endblock %} \ No newline at end of file diff --git a/src/webui/index.html b/src/webui/index.html index 69dad0e..c30a00b 100644 --- a/src/webui/index.html +++ b/src/webui/index.html @@ -1,43 +1,8 @@ - - - - - - Lumeex - - - - - - -
-
+{% extends "template/base.html" %} + +{% block title %}Gallery Editor{% endblock %} + +{% block content %}

Static Gallery Generator

Use this generator to create a static gallery from your photos. Then, upload the static files to your preferred web server.

@@ -57,29 +22,9 @@
- - - - - \ No newline at end of file + +{% endblock %} + +{% block scripts %} + +{% endblock %} \ No newline at end of file diff --git a/src/webui/site-info/index.html b/src/webui/site-info/index.html index 1cfc2e1..4e2b98b 100644 --- a/src/webui/site-info/index.html +++ b/src/webui/site-info/index.html @@ -1,43 +1,9 @@ - - - - - - Lumeex - - - - - - -
-
+{% extends "template/base.html" %} + +{% block title %}Gallery Editor{% endblock %} + +{% block content %} +

Edit Site Info

@@ -180,7 +146,7 @@
- + - - - - - - - \ No newline at end of file + +{% endblock %} + +{% block scripts %} + +{% endblock %} \ No newline at end of file diff --git a/src/webui/template/base.html b/src/webui/template/base.html new file mode 100644 index 0000000..0bede5b --- /dev/null +++ b/src/webui/template/base.html @@ -0,0 +1,72 @@ + + + + + + {% block title %}Lumeex{% endblock %} + + + + + + +
+
+ + {% block content %}{% endblock %} + + + + + + + {% block scripts %}{% endblock %} + + \ No newline at end of file diff --git a/src/webui/theme-editor/index.html b/src/webui/theme-editor/index.html index e87e22a..939db7f 100644 --- a/src/webui/theme-editor/index.html +++ b/src/webui/theme-editor/index.html @@ -1,45 +1,10 @@ - - - - - - Theme Editor - - - - - - - -
-
-

Edit Theme

+{% extends "template/base.html" %} + +{% block title %}Gallery Editor{% endblock %} + +{% block content %} + +

Edit Theme

Current theme: @@ -209,31 +174,9 @@
- - - + +{% endblock %} + +{% block scripts %} - - - \ No newline at end of file +{% endblock %} \ No newline at end of file