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