Paginator can handle both screenshots and packages now

This commit is contained in:
Christoph Haas 2020-10-25 02:20:49 +02:00
parent 109354dbf6
commit f323f94582
3 changed files with 11 additions and 6 deletions

View file

@ -2,7 +2,7 @@
.grid-x
.small-6.medium-8.large-9.cell
// Paginator
= render 'packages/paginator'
= render(partial: 'packages/paginator', locals: {items: @packages})
.small-6.medium-4.large-3.cell
// Search form
@ -35,7 +35,7 @@
= pkg.long_description_first_paragraph or 'Sorry - no description available.'
// Second paginator at the bottom so the user does not have to scroll up again
= render 'packages/paginator'
= render(partial: 'packages/paginator', locals: {items: @packages})
- else
= render 'packages/noresults'