diff --git a/spine.el b/spine.el index bb14206..9d24bf7 100644 --- a/spine.el +++ b/spine.el @@ -407,7 +407,7 @@ Set by test harnesses that only need the model functions.") (if books (insert (spine-render "index.mustache" (spine-index-model books shelf-filter (cadr (assoc "id" query))))) - (insert (spine-render-empty-state)))) + (insert (spine-render-empty-state))))) (defun httpd/add (proc uri-path query request) "Handle /add: GET shows form, POST creates a book." diff --git a/templates/add.mustache b/templates/add.mustache index 1e16361..acd4778 100644 --- a/templates/add.mustache +++ b/templates/add.mustache @@ -60,10 +60,11 @@
- - {{#existing_authors}} - - {{#existing_categories}} + + diff --git a/templates/index.mustache b/templates/index.mustache index 3a55277..93b045a 100644 --- a/templates/index.mustache +++ b/templates/index.mustache @@ -40,10 +40,6 @@ .group { padding:10px 14px 4px; font-size:11px; letter-spacing:0.04em; color: var(--text-tertiary); } .row { display:flex; align-items:center; gap:10px; padding:5px 14px; font-size:13px; } .glyph { font-size:15px; color:var(--text-tertiary); width:16px; } - .pill { padding:1px 7px; border-radius:var(--radius-md); font-size:11px; } - .pill.want { background:var(--bg-info); color:var(--text-info); } - .pill.reading { background:var(--bg-warning); color:var(--text-warning); } - .pill.read { background:var(--bg-success); color:var(--text-success); } .title { flex:1; min-width:0; } .muted { color:var(--text-tertiary); } .tags { color:var(--text-info); font-size:12px; } @@ -66,30 +62,22 @@
spine - {{total_books}} books · {{reading_count}} reading + {{total_books}} books · {{shelf_count}} shelves
- {{#current_filter}} - {{/current_filter}} - {{^current_filter}} -
- All books ({{total_books}}) + All + {{#shelf_nav}}  ·  - Want list -  ·  - Read ({{reading_count}}) + {{name}} + {{/shelf_nav}}
- {{/current_filter}} {{#groups}}
{{label}} · {{count}}
{{#books}}
- {{status_label}} {{title}} · {{author}} {{#tags_inline}}{{tags_inline}}{{/tags_inline}} {{#rec_via}}via {{rec_via}}{{/rec_via}} @@ -106,10 +94,6 @@ {{/books}} {{/groups}} - {{#summary_groups}} - - {{/summary_groups}} - {{#minibuffer}}
M-x