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
Add infinite scroll and refactor of issues page #53
Conversation
issues = Issues.objects.all().order_by('points') | ||
paginator = Paginator(issues, 25) # Show 25 contacts per page | ||
page = request.GET.get('page', 1) | ||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try and catch .. cool 😄 👍
|
||
return render(request, 'Projects/home.html', {'issues':issues}) | ||
issues = Issues.objects.all().order_by('points') | ||
paginator = Paginator(issues, 25) # Show 25 contacts per page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10-15 issues per page would be better I guess 😄
var issue_id = $(".issue_info", issue).attr('issue-id'); | ||
var csrf=$(".single_issue").attr('csrf'); | ||
|
||
var issue = $(this).closest('.single-issue'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Great 👍 you can also create a request for this PR on https://contrihubs.herokuapp.com/ for achieving points of this PR and secure your rank on leaderboard 😄 |
Close #36
Changelog:
Waypoints
library.Proof:
Responsive page
Infinite Scroll