mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
Make it easier to view more pages
This commit is contained in:
parent
c68cbeb5a4
commit
2a680c5dc6
2 changed files with 8 additions and 6 deletions
2
app.rb
2
app.rb
|
@ -20,7 +20,7 @@ end
|
|||
get '/browse' do
|
||||
@current_page = params[:current_page] || 1
|
||||
@current_page = @current_page.to_i
|
||||
site_dataset = Site.order(:hits.desc, :updated_at.desc).filter(is_banned: false).filter(~{updated_at: nil}).paginate(@current_page, 100)
|
||||
site_dataset = Site.order(:hits.desc, :updated_at.desc).filter(is_banned: false).filter(~{updated_at: nil}).paginate(@current_page, 200)
|
||||
@page_count = site_dataset.page_count || 1
|
||||
@sites = site_dataset.all
|
||||
slim :browse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue