Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #HAML
- - @casting_call.ambiance_images.each do |i|
- %span.ambiance_images
- = link_to(image_tag(i.image.url(:mini, :size => '60x60')), i.image.url(:original), :rel => "ambiance")
- # JAVASCRIPT
- $(function() {
- if ($("a[rel='ambiance']").length > 0) {
- $("a[rel='ambiance']").colorbox();
- }
- }}
Add Comment
Please, Sign In to add comment