Add more descriptive page titles
This commit is contained in:
parent
101b5cadb5
commit
09dc6c51af
5 changed files with 18 additions and 2 deletions
2
app.py
2
app.py
|
@ -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
|
||||
|
|
|
@ -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
10
templates/default.html
Normal 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 %}
|
||||
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue