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
4100f08543
Search-help link made in a more Mojo-ish way.
2022-10-11 12:10:18 +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
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
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
be0b5673de
Add a little CSS and drop the static index page.
2022-09-19 12:29:08 +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
eb5a57bc21
Some template cleanup.
2022-09-14 19:05:57 +01:00
barnold
7f9fb06b13
Drop the '/' from calls to current_route and url_for...
...
because I suspect it's more "correct".
2022-09-14 18:07:58 +01:00
barnold
815054573e
More auth things.
2022-09-14 17:58:34 +01:00
barnold
76334e7db8
Make the condition more explicit...
...
by giving the route a name more communicative than an empty string.
Thanks to kraih[m] on #mojo for help.
2022-09-13 15:41:25 +01:00
barnold
4b08928ffc
Use a more mojo-idiomatic condition than $c->req->url->path.
2022-09-13 15:19:48 +01:00
barnold
df1234e913
Layout's home link shown conditionally.
2022-09-13 15:02:33 +01:00
barnold
e08685d350
Add links to index and layout templates.
2022-09-13 14:35:17 +01:00
barnold
a017600c85
Use "mojo generate app MyApp" to add things...
...
Added files and directories as generated, based on
Mojolicious::Guides::Growing. The generator expects the root
directory to be named 'my_app', which mine wasn't. So I symlinked my
directory, ~/src/mojo-tutorial.barnold, to ~/src/my_app. Then 'cd
~/src; mojo generate app MyApp; unlink my_app'.
2022-09-13 09:52:55 +01:00