barnold
a610da0887
Update INSTALL and fix a bug...
...
Filled out INSTALL. Told git to ignore a local favicon. Fixed layout
links to reset the page number.
2022-10-16 18:27:14 +01:00
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
3efb12bb86
Page navigation tweaks.
2022-10-12 09:04:09 +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
4100f08543
Search-help link made in a more Mojo-ish way.
2022-10-11 12:10:18 +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
dd6ea0a0ba
Improve links to be "portable"...
...
so that they still work if the app is server under a 'root' path like
'/pg-catalog/...' instead of directly under '/...'.
2022-10-02 12:49:09 +01:00
barnold
595b4be156
Reduce vertical space taken by page navigation.
2022-09-29 18:04:47 +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
76df89a970
Login, logout all gone.
2022-09-29 13:22:21 +01:00
barnold
24fbcf708b
Put the about-page under the book controller.
2022-09-29 13:18:03 +01:00
barnold
4c6d5bf321
Start getting rid of login-logout. Home page shows books.
2022-09-29 12:37:03 +01:00
barnold
5cc21a2e7a
Take the rpp preference out of auth...
...
and put it in the layout. The form response now redirects back to the current
page. Catch: if on the last page and you increase rpp, it redirects beyond
the last page and therefore 404s.
2022-09-29 10:59:37 +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
92a01126a4
More parameter checking and a custom not-found page.
2022-09-20 11:33:08 +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
be0b5673de
Add a little CSS and drop the static index page.
2022-09-19 12:29:08 +01:00
barnold
2ac594269d
Make rows-per-page a user preference.
2022-09-19 11:50:01 +01:00
barnold
6ea53c5657
More on rows-per-page...
...
Added helpers and updated MyModel with a view to making rows-per-page
a user preference.
2022-09-19 10:04:57 +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
7579138d99
Simplied page nav a little further...
...
by dropping the '->to_abs' calls. Makes no difference to the links
and saves a little clutter.
2022-09-18 14:51:16 +01:00
barnold
106c859e64
Switched to url_with for page navigation...
...
since it inherits query parameters for me, simplifying things.
Thanks to kraih[m] on #mojo for help.
2022-09-18 14:46:57 +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