re ans-post
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2024-01-30 01:49:36 +10:00
parent 9838f7f024
commit a84da0a6f9
2 changed files with 15 additions and 1 deletions

2
app.py
View File

@ -50,6 +50,8 @@ def healthz():
@app.route("/") @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) return render_template("main-page.html", host_id=docker_short_id, boards=board_list)

View File

@ -15,6 +15,18 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col s4 ">
<div class="card">
<div class="card-content">
{% if boards[0] | length > 0 %}
<p>Доски:</p>
{% for board in boards[0] %}
<a href="/db_posts" class="lime-text red collection-item" style="padding: 2px 2px;">board</a>
{% endfor %}
{% endif %}
</div>
</div>
</div>
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}