hx boost + bug fix
This commit is contained in:
+2
-2
@@ -1103,7 +1103,7 @@ pub fn live_list_fragments(
|
|||||||
) -> Markup {
|
) -> Markup {
|
||||||
let editable = list.archived_at.is_none();
|
let editable = list.archived_at.is_none();
|
||||||
html! {
|
html! {
|
||||||
(list_content_fragment(list, items, categories, csrf_token, true, editable))
|
(list_items_fragment(list, items, categories, csrf_token, true, editable))
|
||||||
(list_meals_panel(list_meals, list.id, csrf_token, true, editable))
|
(list_meals_panel(list_meals, list.id, csrf_token, true, editable))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1296,7 +1296,7 @@ fn page(title: &str, user: Option<&User>, content: Markup) -> Markup {
|
|||||||
script src="https://unpkg.com/htmx.org@2.0.4" {}
|
script src="https://unpkg.com/htmx.org@2.0.4" {}
|
||||||
script src="https://unpkg.com/htmx-ext-ws@2.0.2/ws.js" {}
|
script src="https://unpkg.com/htmx-ext-ws@2.0.2/ws.js" {}
|
||||||
}
|
}
|
||||||
body {
|
body hx-boost="true" {
|
||||||
header class="site-header" {
|
header class="site-header" {
|
||||||
a class="brand" href="/lists" { span class="brand-mark" { "S" } "Sustenance" }
|
a class="brand" href="/lists" { span class="brand-mark" { "S" } "Sustenance" }
|
||||||
@if let Some(user) = user {
|
@if let Some(user) = user {
|
||||||
|
|||||||
Reference in New Issue
Block a user