mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
oops
This commit is contained in:
parent
ce59bbac9b
commit
0d16d2c56a
2 changed files with 3 additions and 3 deletions
2
app.rb
2
app.rb
|
@ -37,7 +37,7 @@ get '/browse' do
|
|||
@current_page = params[:current_page] || 1
|
||||
@current_page = @current_page.to_i
|
||||
|
||||
site_dataset = Site.filter(is_banned: false).filter(site_changed: true).paginate(@current_page, 2) # 300
|
||||
site_dataset = Site.filter(is_banned: false).filter(site_changed: true).paginate(@current_page, 300)
|
||||
|
||||
case params[:sort_by]
|
||||
when 'hits'
|
||||
|
|
|
@ -26,11 +26,11 @@
|
|||
<option value="oldest" <%= 'selected' if params[:sort_by] == 'oldest' %>>Oldest</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div>
|
||||
<input name="is_nsfw" type="checkbox" value="true" <%= 'checked' if params[:is_nsfw].to_s == 'true' %>> Show 18+ content
|
||||
</div>
|
||||
|
||||
-->
|
||||
<div style="margin-top: 10px">
|
||||
<input class="btn-Action" type="submit" value="Update">
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue