miniflux / v2

Minimalist and opinionated feed reader
https://miniflux.app
Apache License 2.0
6.44k stars 702 forks source link

Add navigation to Last/First page #1629 #2707

Closed woj-tek closed 6 hours ago

woj-tek commented 5 days ago

Do you follow the guidelines?


I tried to solve #1629 and #1867

I made a couple of changes:


One thing that works "iffy" right now is marking last page as read - when that happens when last page is marked as read - currently it goes to first page. I was thinking that if offset > total/unread it should go to the last available page, but even though this results in "There are no unread entries." (currently) as it has offset same as total/unread. One solution would be to add pagination to internal/template/templates/views/unread_entries.html and internal/template/templates/views/feed_entries.html which makes it possible to go to previous page easily (I have it locally and it it "is working" but it feels kinda hacky…)