gut-space / satnogs

The goal of this project is to create a functional satellite ground station, able to receive VHF transmissions from NOAA sats and more!
https://aquarius.klub.com.pl
MIT License
9 stars 0 forks source link

Pagination #58

Closed fivitti closed 4 years ago

fivitti commented 4 years ago

This MR adds pagination solution to our server. It provide easy to use (I hope), but flexible solution to add pagination. You have a different ways to use pagination tools which differ in the amount of work to be done. See docstrings. I apply it to obslist and stationstemplate.

This pagination is page-based. It means that user may select which "page" want to see. If page is only one then pagination controls aren't display.

The summary with items count is now generated automatically.

Version from your previous commit s now displayed on all pages without the need for manually include footer.

Related to #21

tomaszmrugalski commented 4 years ago

I've tested in on Ubuntu 19.10 with python 3.7.5. Seems to be working fine. Unit-tests pass. Contrary to branch name, there's no searching or filtering. But I assumed it's not part of the PR.

Here's a tip: you can easily "rename" branches.

git checkout search-pagginate-filter
git checkout -b paginate
git push -u origin paginate
git branch -D search-pagginate-filter
git push origin :search-pagginate-filter
fivitti commented 4 years ago

I fixed your notes, but I added solution for handle multiple pagination on the same page. Please review changes from this commit.