some structure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-03 22:58:08 +10:00
parent bd9a18eec6
commit a7fa809ae4
3 changed files with 16 additions and 3 deletions

8
app.py
View File

@ -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
boards.py Normal file
View File

@ -0,0 +1,3 @@
board_list = [
'b','a','d'
]

View File

@ -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 %}