Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better pager #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zeronetscript
Copy link

these two patch based on my previously coffeelint work, it supports better pager.

page links may be less than it should be , when applyPagerdata called, whole page didn't layout completely so it needs further work. I'm not good at html so I just create this pull, hopes others can improve it

@HelloZeroNet
Copy link
Owner

hi, thanks for the contribution, but i don't really have time to review/test the changes, so please create a new fork/demo site and I will link to this as "improved blog" on zeroblog

nobody added 2 commits April 21, 2016 21:07
when selecting posts, select count(*) from post as first row
so we can do better page display
previously only show prev/next, hard to jump. this improve it by:
support jump to first/last page
show current page and neighbour page links (instead of prev/next)
if not all next pages can showup, ... added to last link to notice user
@zeronetscript
Copy link
Author

I've create a demo blog for review here:
http://127.0.0.1:43110/19k2nhubaYsDJNPHL6iNs3D2K9Mgj66P4R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants