Some HTML fixes JetBrains complained about

This commit is contained in:
Nyx 2025-03-10 00:40:51 -05:00
parent 0976345e9c
commit 822e41b394
4 changed files with 6 additions and 3 deletions

View file

@ -6,12 +6,12 @@ app = Flask(__name__)
@app.route('/') @app.route('/')
def home(): def home():
return render_template('index.j2', instanceName="nyxask.nixos.internal") return render_template('index.j2', instanceName="nyxask.nixos.internal" instanceBranding="NyxAsk Testing Instance")
@app.route('/auth/login/') @app.route('/auth/login/')
def login(): def login():
return render_template('login.j2', instanceName="nyxask.nixos.internal") return render_template('login.j2', instanceName="nyxask.nixos.internal" instanceBranding="NyxAsk Testing Instance")
@app.route('/assets/css/index.css') @app.route('/assets/css/index.css')

View file

@ -1,6 +1,7 @@
{% from 'header.j2' import header_home %} {% from 'header.j2' import header_home %}
<html lang=en> <html lang=en>
<head> <head>
<title>{{ instanceBranding }} - Home</title>
<link rel="stylesheet" href="/assets/css/index.css"> <link rel="stylesheet" href="/assets/css/index.css">
</head> </head>
<body> <body>

View file

@ -1,6 +1,7 @@
{% from 'header.j2' import header_login %} {% from 'header.j2' import header_login %}
<html lang="en"> <html lang="en">
<head> <head>
<title>{{ instanceBranding }} - Login</title>
</head> </head>
<body> <body>
{{ header_login() }} {{ header_login() }}
@ -15,7 +16,7 @@
name="name" name="name"
size="10" /> size="10" />
<br> <br>
<label for="question">Password: </label> <label for="password">Password: </label>
<input <input
type="password" type="password"
id="password" id="password"

View file

@ -1,6 +1,7 @@
{% from 'header.j2' import header_login %} {% from 'header.j2' import header_login %}
<html lang=en> <html lang=en>
<head> <head>
<title>{{ instanceBranding }} - Register</title>
</head> </head>
<body> <body>
{{ header_login() }} {{ header_login() }}