mikespub-org / seblucas-cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
55 stars 7 forks source link

bootstrap5 Submenu improvements #43

Closed dunxd closed 9 months ago

dunxd commented 9 months ago
dunxd commented 9 months ago

Also enabled tooltips using new Bootstrap v5 method, and added explanatory tooltips to the download all buttons.

dunxd commented 9 months ago

Currently using {{? it.download.length != 0 && it.entries.length > 1 }} to check when to show download buttons - but that won't work server side as it relies on a javascript method.

Server side rendered this just doesn't show the download all buttons at all.

mikespub commented 9 months ago

Solved in #40 for the it.download part. Checking if you have more than 1 entry or not is a luxury I can live without ;-)

dunxd commented 9 months ago

I added entriesCount to JSON_renderer.php - it is potential useful to know how many results have been returned and use it in templates, and there doesn't seem to be a way to do it across client and server side.

mikespub commented 9 months ago

Indeed, thanks - I had to do the same for preferedData for server-side doT-php and for Twig:

https://github.com/mikespub-org/seblucas-cops/blob/main/templates/twigged/README.md