From 9d1889232e7d105fd77fc65c16a29b8c99f82c3a Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Sun, 16 Jul 2023 02:35:06 +1000 Subject: [PATCH] rm styles --- app.py | 8 ---- templates/base.html | 2 +- templates/board.html | 26 ----------- templates/i-posts.html | 28 ++++++------ templates/interactive-posts.html | 4 +- templates/main-page.html | 14 +++--- templates/navbar.html | 6 +-- templates/posts.html | 75 -------------------------------- 8 files changed, 27 insertions(+), 136 deletions(-) delete mode 100644 templates/board.html delete mode 100644 templates/posts.html diff --git a/app.py b/app.py index a3d7f3a..a6db75a 100644 --- a/app.py +++ b/app.py @@ -47,15 +47,7 @@ def healthz(): @app.route("/") def homepage(): return render_template("main-page.html", host_id=docker_short_id, boards=board_list) - -@app.route("/boards/") -def page_board(board_id): - - b_threads = [ open_threads[thread_id] for thread_id in open_threads if thread_id in threads_lists[board_id]] - return render_template("board.html", host_id=docker_short_id, board_id=board_id, boards=board_list, board_threads=b_threads) - - @app.route("/db_posts") def page_posts_from_db(): diff --git a/templates/base.html b/templates/base.html index b826f4a..3eaee15 100644 --- a/templates/base.html +++ b/templates/base.html @@ -16,7 +16,7 @@ Board++ - +
{% block content %} diff --git a/templates/board.html b/templates/board.html deleted file mode 100644 index c12d10d..0000000 --- a/templates/board.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - -
-

Вы тут: /{{board_id}}

-
- - - - - -{% include 'posts.html' %} - -{% endblock content %} \ No newline at end of file diff --git a/templates/i-posts.html b/templates/i-posts.html index 474ac04..ea06dfc 100644 --- a/templates/i-posts.html +++ b/templates/i-posts.html @@ -1,14 +1,14 @@ {% if postos | length > 0 %} {% for posto in postos %} -
+
{% if posto.root_post %} -
+
{% else %} -
+
{% endif %} -
-
-
+
+
+ -
-
- #{{ posto._key }} - Ответов: {{ posto.answers_num }} - Длина треда: {{ posto.children_num }} + -
-
+ diff --git a/templates/interactive-posts.html b/templates/interactive-posts.html index 15a9558..eabce2d 100644 --- a/templates/interactive-posts.html +++ b/templates/interactive-posts.html @@ -6,8 +6,8 @@ {% include 'navbar.html' %} -
-
+
+
{% include 'i-posts.html' %}
diff --git a/templates/main-page.html b/templates/main-page.html index 8a37c12..d26898d 100644 --- a/templates/main-page.html +++ b/templates/main-page.html @@ -3,14 +3,14 @@ {% block content %} {% include 'navbar.html' %} -
-
-
-
-
- +
+
+
+
+
+
-
+

Dobro pozhalovat. AGAIN.

diff --git a/templates/navbar.html b/templates/navbar.html index c81f7d0..5927050 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -1,11 +1,11 @@