Add more descriptive page titles

This commit is contained in:
TT-392 2024-12-04 22:26:50 +01:00
parent 101b5cadb5
commit 09dc6c51af
5 changed files with 18 additions and 2 deletions

2
app.py
View file

@ -74,7 +74,7 @@ def render_image_template(info=None, info_color=None):
@app.route('/', methods=['GET', 'POST'])
def base():
check_for_new_user(session)
return render_template('base.html')
return render_template('default.html')
# gets triggered when the user_data folder for the user is created
@new_user_handler

View file

@ -4,7 +4,6 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Upload</title>
<style>
body {

10
templates/default.html Normal file
View file

@ -0,0 +1,10 @@
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
{% extends "base.html" %}
{% block head %}
<title>Labelprinter</title>
{% endblock %}
{% block content %}
{% endblock %}

View file

@ -1,6 +1,10 @@
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
{% extends "base.html" %}
{% block head %}
<title>LabelPrinter Image upload</title>
{% endblock %}
{% block content %}
<h1>Upload Image</h1>
<form method="POST" action="/image" enctype="multipart/form-data">

View file

@ -1,6 +1,9 @@
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
{% extends "base.html" %}
{% block head %}
<title>LabelPrinter Label generator</title>
{% endblock %}
{% block content %}
<form method="POST" action="/text-template">