This commit is contained in:
parent
9838f7f024
commit
a84da0a6f9
4
app.py
4
app.py
@ -49,7 +49,9 @@ 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)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user