Skip to content
Browse files

Dont put js & css in head section.

  • Loading branch information...
1 parent 043a3f7 commit 91d5fc8a4f76bc2f1b10a19addcb629bd73f4c07 @romul committed Aug 28, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/views/products/_thumbnails.html.erb
View
6 app/views/products/_thumbnails.html.erb
@@ -1,8 +1,6 @@
<% if !product.images.empty? %>
-<% content_for :head do -%>
<%= javascript_include_tag 'nf.lightbox.js' %>
<%= stylesheet_link_tag 'nf.lightbox.css' %>
-<% end -%>
<script type="text/javascript">
$(function() {
$('#product-images a').lightBox();
@@ -13,8 +11,8 @@ $(function() {
<% is_first = true
product.images.each do |i|
if is_first
- is_first = false
- next
+ is_first = false
+ next
end -%>
<li><%= link_to_image(i.attachment, product.name) %></li>
<% end -%>

0 comments on commit 91d5fc8

Please sign in to comment.
Something went wrong with that request. Please try again.