From 4b152bbe4ef84c054076e3cc3d917240b11411bc Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 8 Aug 2026 15:40:15 -0400 Subject: [PATCH] fix(templates): use expression attributes and fix indentation Convert string-interpolation attributes (value="{ x }") to templ expression attributes (value={ x }) for IDs, paths, and titles, and fix indentation in header.templ and progress.templ. --- templates/admin_library.templ | 2 +- templates/book_detail.templ | 2 +- templates/collection_rules.templ | 2 +- templates/conflicts.templ | 4 ++-- templates/header.templ | 6 +++--- templates/progress.templ | 22 +++++++++++----------- templates/unlinked_books.templ | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/templates/admin_library.templ b/templates/admin_library.templ index ac1f327..2ebafca 100644 --- a/templates/admin_library.templ +++ b/templates/admin_library.templ @@ -78,7 +78,7 @@ templ AdminLibrary(user User, libraries []LibraryData, users []User) { diff --git a/templates/book_detail.templ b/templates/book_detail.templ index 2b6b639..a9c7fb1 100644 --- a/templates/book_detail.templ +++ b/templates/book_detail.templ @@ -43,7 +43,7 @@ templ BookDetail(user User, book handlers.MediaDetail, errorMessage string) { } else { { book.Title } } diff --git a/templates/collection_rules.templ b/templates/collection_rules.templ index 3570edb..b0ee6dd 100644 --- a/templates/collection_rules.templ +++ b/templates/collection_rules.templ @@ -38,7 +38,7 @@ templ CollectionRules(user User, collection CollectionData) {

Create New Rule

- +
diff --git a/templates/conflicts.templ b/templates/conflicts.templ index 1eb1b67..f065cbc 100644 --- a/templates/conflicts.templ +++ b/templates/conflicts.templ @@ -92,13 +92,13 @@ templ Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total in
} for _, conflict := range conflicts { -
+
diff --git a/templates/header.templ b/templates/header.templ index a52d6bc..9e5cbcb 100644 --- a/templates/header.templ +++ b/templates/header.templ @@ -1,7 +1,7 @@ package templates templ Header(user User, currentPath string) { -