Page title

This commit is contained in:
Emily 2019-04-25 21:17:26 +01:00
parent c4a792ab13
commit f95eb00a45
8 changed files with 12 additions and 27 deletions

View File

@ -3,8 +3,9 @@ from objects import glob # Global sharing of python objects in a manageable way
@glob.app.route("/")
@glob.app.route("/home")
@glob.app.route("/dashboard")
def home():
return render_template("home.html")
return render_template("pages/dashboard.html")
@glob.app.route("/login", methods = ["GET", "POST"])
def serve_login():
@ -12,19 +13,4 @@ def serve_login():
return "TODO: Login handle", 501
return render_template("login.html")
@glob.app.route("/testing")
def we_are_testing():
return render_template("testing.html")
@glob.app.route("/bill")
def serve_bill():
return render_template("bill.html")
@glob.app.route("/regninger")
def serve_regninger():
return render_template("regninger.html")
@glob.app.route("/kvittering")
def serve_kvittering():
return render_template("kvittering.html")

View File

@ -1,10 +0,0 @@
{% set title = "Home" %}
{% extends "layout/dash.html" %}
{% block content %}
<p>Template usage</p>
<i class="fas fa-user"></i> <!-- uses solid style -->
<i class="far fa-user"></i> <!-- uses regular style -->
<i class="fab fa-github-square"></i> <!-- uses brands style -->
{% endblock %}

View File

@ -32,7 +32,7 @@
</style>
<nav class="navbar topnav" style="margin-bottom: 10px;">
<h3>Dashboard</h3>
<h3>{{ title }}</h3>
<div class="my-2 my-lg-0 d-flex icon-buttons">
<div class="col">
<div class="rndblock languk"></div>

View File

@ -0,0 +1,9 @@
{% set title = "Dashboard" %}
{% extends "layout/dash.html" %}
{% block content %}
{% endblock %}