oops, forgot about page titles

This commit is contained in:
2026-04-05 15:51:22 +02:00
parent 3ab3567ac3
commit f6337104cf
5 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ pub async fn page(req: Request) -> Result<Response, CompositeError> {
let logs = LogEntry::get_all(&tx)?; let logs = LogEntry::get_all(&tx)?;
Ok(base( Ok(base(
"Persons | Mnemosyne", "Logs | Mnemosyne",
html!( html!(
(nav(Some(&u), req.uri().path())) (nav(Some(&u), req.uri().path()))

View File

@@ -16,7 +16,7 @@ pub async fn page(req: Request) -> Result<Response, CompositeError> {
let u = User::authenticate(req.headers())?; let u = User::authenticate(req.headers())?;
Ok(base( Ok(base(
"Persons | Mnemosyne", "Quotes | Mnemosyne",
html!( html!(
(nav(u.as_ref(), req.uri().path())) (nav(u.as_ref(), req.uri().path()))

View File

@@ -18,7 +18,7 @@ pub async fn page(req: Request) -> Result<Response, CompositeError> {
let names = Name::get_all(&conn)?; let names = Name::get_all(&conn)?;
Ok(base( Ok(base(
"Persons | Mnemosyne", "Add Quote | Mnemosyne",
html!( html!(
(nav(u.as_ref(), req.uri().path())) (nav(u.as_ref(), req.uri().path()))

View File

@@ -25,7 +25,7 @@ pub async fn page(req: Request) -> Result<Response, AuthError> {
let conn = database::conn()?; let conn = database::conn()?;
Ok(base( Ok(base(
"Users | Mnemosyne", "Create User | Mnemosyne",
html!( html!(
(nav(u.as_ref(), req.uri().path())) (nav(u.as_ref(), req.uri().path()))

View File

@@ -23,7 +23,7 @@ pub async fn page(req: Request) -> Result<Response, AuthError> {
let u = User::authenticate(req.headers())?; let u = User::authenticate(req.headers())?;
Ok(base( Ok(base(
"Persons | Mnemosyne", "User Settings | Mnemosyne",
html!( html!(
(nav(u.as_ref(), req.uri().path())) (nav(u.as_ref(), req.uri().path()))