This commit is contained in:
parent
9838f7f024
commit
a84da0a6f9
2
app.py
2
app.py
@ -50,6 +50,8 @@ def healthz():
|
||||
|
||||
@app.route("/")
|
||||
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)
|
||||
|
||||
|
||||
|
@ -15,6 +15,18 @@
|
||||
</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>
|
||||
{% endblock content %}
|
||||
|
Loading…
Reference in New Issue
Block a user