From fa16a3d78a390f90e3c2a16a2c390d27361fa558 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 2 Feb 2026 10:27:53 -0500 Subject: [PATCH] Remove custom CSS from main user templates Remove @Header(user, "/analytics") @@ -54,19 +45,19 @@ templ Analytics(user User) {
-
+

Books Read

-

-
+

Pages Read

-

-
+

Reading Time

-

-
+

Completion Rate

-

diff --git a/templates/bookshelf.templ b/templates/bookshelf.templ index cb23aec..82e1f74 100644 --- a/templates/bookshelf.templ +++ b/templates/bookshelf.templ @@ -12,216 +12,12 @@ templ BookShelf(user User) { - @Header(user, "/bookshelf")
-
+
@@ -396,10 +192,11 @@ templ BookShelf(user User) { let html = ''; shelves.forEach((shelfBooks, index) => { - html += `
+ html += `
${shelfBooks.map(book => renderBookCard(book)).join('')}
+
`; }); @@ -409,11 +206,12 @@ templ BookShelf(user User) { function renderBookCard(book) { const coverUrl = book.cover_image_path || '/static/placeholder-book.svg'; const authorHtml = book.author ? `

${book.author}

` : ''; - - return `
-
- ${book.title} +
+
+ ${book.title} diff --git a/templates/conflicts.templ b/templates/conflicts.templ index e3ee842..f2b4348 100644 --- a/templates/conflicts.templ +++ b/templates/conflicts.templ @@ -13,38 +13,6 @@ templ Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total in - @Header(user, "/conflicts") @@ -127,30 +95,30 @@ templ Conflicts(user User, conflicts []handlers.ConflictDetailResponse, total in
} - for _, conflict := range conflicts { -
-
-
- -
-

{ conflict.MediaItemTitle }

-

Type: { conflict.ConflictType }

-
-
- -
-
- Created: { conflict.CreatedAt.Format("2006-01-02 15:04:05") } - if conflict.ResolvedBy != "" { - | Resolved by: { conflict.ResolvedBy } - } + for _, conflict := range conflicts { +
+
+
+ +
+

{ conflict.MediaItemTitle }

+

Type: { conflict.ConflictType }

+
-
- } + +
+
+ Created: { conflict.CreatedAt.Format("2006-01-02 15:04:05") } + if conflict.ResolvedBy != "" { + | Resolved by: { conflict.ResolvedBy } + } +
+
+ }