mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
clean up browse some more
This commit is contained in:
parent
dde1c86b91
commit
ebec39dcea
2 changed files with 5 additions and 4 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, 200)
|
||||
site_dataset = Site.order(:hits.desc, :updated_at.desc).filter(is_banned: false).filter(~{updated_at: nil}).paginate(@current_page, 201)
|
||||
@page_count = site_dataset.page_count || 1
|
||||
@sites = site_dataset.all
|
||||
slim :browse
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
.row
|
||||
.span12.text-center
|
||||
h1 Web Sites on NeoCities
|
||||
p If you like a site, don't forget to bookmark it!<br>Visitor counts are updated hourly.<br>Want to make your own site? <a href="/new">Click here</a>!
|
||||
|
||||
div
|
||||
h1 Web Sites on NeoCities
|
||||
p If you like a site, don't forget to bookmark it!<br>Visitor counts are updated hourly.
|
||||
div style="margin-bottom: 40px": .btn.btn-success Create your NeoCities site now
|
||||
- count = 0
|
||||
- @sites.each_with_index do |site,i|
|
||||
- if count == 0
|
||||
|
|
Loading…
Add table
Reference in a new issue