Commit Graph

40 Commits

Author SHA1 Message Date
barnold 12b8f797c5 Another update for about. 2022-10-13 09:09:41 +01:00
barnold 92ddca2c0d Tweak how much of names and titles to display in tables. 2022-10-12 19:37:20 +01:00
barnold 179be1f700 De-hardcode the book count. 2022-10-12 19:09:06 +01:00
barnold ca6669f4c2 Another about-page edit. 2022-10-12 08:22:13 +01:00
barnold 4a8a4c1d0d Update about-page. 2022-10-11 12:49:37 +01:00
barnold dde8343978 Local override for configuration...
Look for a local .yml file and apply it if present.
2022-10-09 14:22:40 +01:00
barnold 85dde076e4 Simplify navigation...
Put all the links at the top, unconditionally.  Make the search forms
look slightly nicer.
2022-09-29 14:14:43 +01:00
barnold 24fbcf708b Put the about-page under the book controller. 2022-09-29 13:18:03 +01:00
barnold c6687ad3f5 Expand the About page. 2022-09-28 21:12:27 +01:00
barnold 8486f59985 Make tables stripy. 2022-09-27 10:56:45 +01:00
barnold 36637c9f79 More css for tables. 2022-09-27 10:33:01 +01:00
barnold 922273a562 Add search-help to the book page. 2022-09-26 09:19:56 +01:00
barnold 9f16a10009 Link book title to its gutenberg page. 2022-09-26 09:14:39 +01:00
barnold 646d0c4084 Add truncations to limit table widths. 2022-09-26 09:03:20 +01:00
barnold ff61ab78a9 Add minimum book count as authors search criterion. 2022-09-22 13:27:01 +01:00
barnold 3ef9852367 Add "author like" as book search criterion. 2022-09-22 11:39:00 +01:00
barnold bee38a9e5c Fix the books page's author link, same as a12aae8. 2022-09-20 13:19:52 +01:00
barnold a12aae81dc Fix a bug in the authors page...
Each author in the table has a link to a page for that particular
author.  The link didn't set the page_number and it turns out in that
case the page number is unchanged.

So if you're on page 5 of authors and follow the link for some author,
you go to /author/<id>/5 which attempts to show page 5 of that
author's books.  If the author doesn't have that many books, the table
is empty.  The fix is to set page_number explicitly to 1.
2022-09-19 20:20:40 +01:00
barnold f2418a1e59 Author page shows paged list of author's books. 2022-09-19 17:57:27 +01:00
barnold e2748bd642 Begin paged list of books on author page. 2022-09-19 17:42:28 +01:00
barnold 3c2dd9eac5 A few paging changes...
Pass the items name (plural) into the page nav partial.
Simplify what's shown if there's no more than one pageful of items.
2022-09-19 13:39:11 +01:00
barnold 74ae6e1745 Add a helper for formatting numbers. 2022-09-18 18:56:42 +01:00
barnold c9c248a4b3 Various template improvements. 2022-09-18 18:22:10 +01:00
barnold 3dc4410342 Rename some things for clarity. 2022-09-18 17:31:01 +01:00
barnold a1aeb653bf Begin a view-author page. 2022-09-18 17:17:30 +01:00
barnold 386570b2c6 Share page navigation as a partial template. 2022-09-18 14:17:40 +01:00
barnold f4c2fa85a9 Add author page. 2022-09-18 14:09:17 +01:00
barnold 56f8a40e14 Get book-specific code out of the page-navigation things...
with a view to reusing in an author page later.
2022-09-18 13:48:13 +01:00
barnold 94b888f0f5 Reset to page 1 on a new search. Fix test. 2022-09-18 13:00:38 +01:00
barnold e253331a5e Show current page number and page count. 2022-09-18 12:44:14 +01:00
barnold 759df65a10 Pager links now preserve the search pattern. 2022-09-18 12:39:56 +01:00
barnold a172325e4c Search + paging partially working. 2022-09-18 12:18:15 +01:00
barnold e90a76ba61 Conform to the column name change...
of book.name to book.title that I made in dbix-tutorial.
2022-09-18 11:01:34 +01:00
barnold 8dcdb9fb10 Improve the book listing...
Add order_by.  Prefetch author and show author's name.  Add table
markup.
2022-09-17 16:28:17 +01:00
barnold 143dcc9bdc Can page to first, prev, next, last. 2022-09-17 16:05:45 +01:00
barnold adadecc88b Minor template cleanup. 2022-09-17 15:41:46 +01:00
barnold bd3d4c5584 More on paging...
Moved the book page out of auth.  Can now advance through pages.
2022-09-17 15:27:01 +01:00
barnold e87ec1c05b Make a start on paging. 2022-09-17 15:06:11 +01:00
barnold 32302755f3 Add a simple database query plus test. 2022-09-15 11:52:31 +01:00
barnold ace42f33ea Add a book page...
This goes more with the flow by putting the template in a directory
named after the controller.  The controller doesn't need to identify
the template.
2022-09-14 09:26:59 +01:00