fixes in ux

This commit is contained in:
Mateusz Gruszczyński
2026-07-20 23:10:53 +02:00
parent 94a8907f02
commit f5292aefd6
7 changed files with 49 additions and 17 deletions
+3 -1
View File
@@ -172,7 +172,9 @@ async fn note(
match db::find_note(&state.db, workspace.id, &note_slug).await {
Ok(Some(note)) => {
let html = include_str!("../static/note.html")
.replace("__NOTE_TITLE__", &escape_html(&note.title));
.replace("__NOTE_TITLE__", &escape_html(&note.title))
.replace("__WORKSPACE_TITLE__", &escape_html(&workspace.title))
.replace("__WORKSPACE_SLUG__", &escape_html(&workspace_slug));
versioned_html(&html, &state.asset_version)
},
Ok(None) => error_response(