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

Add infinite scroll and refactor of issues page #53

Merged
merged 5 commits into from Oct 11, 2018
Merged

Add infinite scroll and refactor of issues page #53

merged 5 commits into from Oct 11, 2018

Conversation

mariogmz
Copy link
Contributor

@mariogmz mariogmz commented Oct 11, 2018

Close #36

Changelog:

  • General reformatting and refactor to HTML markup and JS on Issues page: added more semantic HTML.
  • Add separate CSS file for Issues page
  • Remove Bootstrap markup and styles from page and added responsive layout using flexbox.
  • Implement Infinite Scroll using Waypoints library.

Proof:

Responsive page

Mobile Responsive

Infinite Scroll

Proof

@mariogmz mariogmz changed the title Add infinite scroll and refactor of issues view Add infinite scroll and refactor of issues page Oct 11, 2018
issues = Issues.objects.all().order_by('points')
paginator = Paginator(issues, 25) # Show 25 contacts per page
page = request.GET.get('page', 1)
try:
Copy link
Member

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
Copy link
Member

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');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dbads dbads merged commit ed4ec76 into ContriHUB:master Oct 11, 2018
@dbads
Copy link
Member

dbads commented Oct 11, 2018

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 😄

@mariogmz mariogmz deleted the feature/infinite-scroll branch October 11, 2018 14:12
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.

None yet

2 participants