mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
disable the surf bar until we can wrangle it's drama better
This commit is contained in:
parent
7c6418a6fb
commit
233b6f758a
2 changed files with 10 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
get '/browse/?' do
|
||||
|
||||
@surfmode = false
|
||||
@page = params[:page].to_i
|
||||
@page = 1 if @page == 0
|
||||
|
||||
|
|
|
@ -76,7 +76,15 @@
|
|||
<ul class="row website-Gallery content int-Gall">
|
||||
<% @sites.each_with_index do |site,i| %>
|
||||
<li id="username_<%= site.username %>">
|
||||
<a href="<%= site.uri %>" class="neo-Screen-Shot" title="<%= site.title %>" onclick="surf(<%= ((@page-1)*Site::BROWSE_PAGINATION_LENGTH)+i+1 %>); return false">
|
||||
<a href="<%= site.uri %>"
|
||||
class="neo-Screen-Shot"
|
||||
title="<%= site.title %>"
|
||||
<% if @surfmode %>
|
||||
onclick="surf(<%= ((@page-1)*Site::BROWSE_PAGINATION_LENGTH)+i+1 %>); return false"
|
||||
<% else %>
|
||||
href="<%= site.uri %>"
|
||||
<% end %>
|
||||
>
|
||||
<span class="img-Holder" style="background:url(<%= site.screenshot_url('index.html', '540x405') %>) no-repeat;">
|
||||
<img src="/img/placeholder.png" alt="<%= site.title %>" />
|
||||
</span>
|
||||
|
|
Loading…
Add table
Reference in a new issue