diff --git a/app.py b/app.py index ae52998..e61c9e2 100644 --- a/app.py +++ b/app.py @@ -49,7 +49,9 @@ def healthz(): @app.route("/") -def homepage(): +def homepage(): + boards0 = db.collection('boards') + board_list = [ k['_key'] for k in boards0] return render_template("main-page.html", host_id=docker_short_id, boards=board_list) diff --git a/templates/main-page.html b/templates/main-page.html index 62c1059..f73f3a3 100644 --- a/templates/main-page.html +++ b/templates/main-page.html @@ -15,6 +15,18 @@ +
+
+
+ {% if boards[0] | length > 0 %} +

Доски:

+ {% for board in boards[0] %} + board + {% endfor %} + {% endif %} +
+
+
{% endblock content %}