aurweb/templates
Kevin Morris 99482f9962
feat(FastAPI): added /requests (get) route
Introduces `aurweb.defaults` and `aurweb.filters`.

`aurweb.filters` is a location developers can put their additional
Jinja2 filters and/or functions. We should slowly move all of our
filters over here, where it makes sense.

`aurweb.defaults` is a new module which hosts some default constants
and utility functions, starting with offsets (O) and per page values
(PP).

As far as the new GET /requests is concerned, we match up here to
PHP's implementation, with some minor improvements:

Improvements:

* PP on this page is now configurable: 50 (default), 100, or 250.
    * Example: `https://localhost:8444/requests?PP=250`

Modifications:

* The pagination is a bit different, but serves the exact same purpose.
* "Last" no longer goes to an empty page.
    * Closes: https://gitlab.archlinux.org/archlinux/aurweb/-/issues/14

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-02 22:43:48 -07:00
..
account add /accounts/ (get, post) routes 2021-07-01 11:08:56 -07:00
errors Adding route tests 2021-06-05 19:52:56 -07:00
packages feat(FastAPI): add /pkgbase/{name}/comments/{id}/pin (post) 2021-10-02 16:59:38 -07:00
partials feat(FastAPI): add Requests navigation item 2021-10-02 22:43:01 -07:00
pkgbase feat(FastAPI): add /pkgbase/{name}/comaintainers (get, post) 2021-10-02 20:19:09 -07:00
tos [FastAPI] add /tos routes (get, post) 2021-06-24 19:12:49 -07:00
tu /tu/{proposal_id}: Do not show voters if there are none 2021-06-26 04:43:00 -07:00
addvote.html add /addvote/ (get, post) routes 2021-07-01 11:08:44 -07:00
dashboard.html fix(FastAPI): voted/notified query efficiency 2021-09-19 00:34:08 -07:00
home.html [FastAPI] Modularize homepage and add side panel 2021-08-17 19:58:32 -07:00
index.html routers.html: add authenticated dashboard to homepage 2021-08-17 21:59:13 -07:00
login.html implement login + logout routes and templates 2021-06-05 20:11:17 -07:00
packages.html feat(FastAPI): add /packages (get) search 2021-09-19 12:44:19 -07:00
passreset.html add passreset routes 2021-06-05 20:11:17 -07:00
pkgbase.html add /pkgbase/{name} route 2021-07-27 20:48:40 -07:00
register.html add user registration routes 2021-06-05 20:11:17 -07:00
requests.html feat(FastAPI): added /requests (get) route 2021-10-02 22:43:48 -07:00