disable the surf bar until we can wrangle it's drama better

This commit is contained in:
Kyle Drake 2016-06-01 07:15:57 -04:00
parent 7c6418a6fb
commit 233b6f758a
2 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,5 @@
get '/browse/?' do get '/browse/?' do
@surfmode = false
@page = params[:page].to_i @page = params[:page].to_i
@page = 1 if @page == 0 @page = 1 if @page == 0

View file

@ -76,7 +76,15 @@
<ul class="row website-Gallery content int-Gall"> <ul class="row website-Gallery content int-Gall">
<% @sites.each_with_index do |site,i| %> <% @sites.each_with_index do |site,i| %>
<li id="username_<%= site.username %>"> <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;"> <span class="img-Holder" style="background:url(<%= site.screenshot_url('index.html', '540x405') %>) no-repeat;">
<img src="/img/placeholder.png" alt="<%= site.title %>" /> <img src="/img/placeholder.png" alt="<%= site.title %>" />
</span> </span>