feat: preprend "I Hate Money" to the page title

This commit is contained in:
Mickaël Schoentgen 2024-11-15 20:46:20 +01:00
parent 6582e2c0c3
commit 6b6cd2ec2b
No known key found for this signature in database
GPG key ID: 6FC5F3AEC7F64679
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html class="h-100"> <html class="h-100">
<head> <head>
<title>{{ _("Account manager") }}{% block title %}{% endblock %}</title> <title>I Hate Money — {{ _("Account manager") }}{% block title %}{% endblock %}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}"> <link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}">

View file

@ -239,7 +239,7 @@ class TestBudget(IhatemoneyTestCase):
url, data={"password": "pass", "password_confirmation": "pass"} url, data={"password": "pass", "password_confirmation": "pass"}
) )
resp = self.login("raclette", password="pass") resp = self.login("raclette", password="pass")
assert "<title>Account manager - raclette</title>" in resp.data.decode("utf-8") assert "<title>I Hate Money — Account manager - raclette</title>" in resp.data.decode("utf-8")
# Test empty and null tokens # Test empty and null tokens
resp = self.client.get("/reset-password") resp = self.client.get("/reset-password")
assert "No token provided" in resp.data.decode("utf-8") assert "No token provided" in resp.data.decode("utf-8")