This commit is contained in:
parent
bd9a18eec6
commit
a7fa809ae4
6
app.py
6
app.py
@ -2,6 +2,7 @@ from flask import Flask, render_template, request
|
||||
from flask_assets import Bundle, Environment
|
||||
|
||||
from todo import todos
|
||||
from boards import board_list
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@ -32,8 +33,10 @@ def healthz():
|
||||
|
||||
@app.route("/")
|
||||
def homepage():
|
||||
return render_template("main-page.html")
|
||||
return render_template("main-page.html", boards=board_list)
|
||||
|
||||
|
||||
### stolen
|
||||
@app.route("/todo")
|
||||
def page_todo():
|
||||
return render_template("page1.html")
|
||||
@ -52,6 +55,7 @@ def search_todo():
|
||||
res_todos.append(todo)
|
||||
|
||||
return render_template("todo.html", todos=res_todos)
|
||||
### /stolen
|
||||
|
||||
|
||||
|
||||
|
@ -3,7 +3,13 @@
|
||||
{% block content %}
|
||||
|
||||
<div class="content">
|
||||
sup
|
||||
Dobro pozhalovat. AGAIN.
|
||||
</div>
|
||||
|
||||
{% for board in boards %}
|
||||
<div class="link">
|
||||
<a href="{{board}}">/{{board}}</a>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
Loading…
Reference in New Issue
Block a user