Skip to content

Instantly share code, notes, and snippets.

@walidvb
Created June 26, 2014 06:18
Show Gist options
  • Save walidvb/f0aa24ab1ec211d0fed5 to your computer and use it in GitHub Desktop.
Save walidvb/f0aa24ab1ec211d0fed5 to your computer and use it in GitHub Desktop.
= render partial:'countdown', locals: {book: @book}
- tile_order = !@book.tile_order.nil? ? @book.tile_order.split(',') : (0..@book.chapters_count).to_a
- binding.pry
.grid#b{:isotope => true}
.gutter-sizer
- tile_order.each do |i|
.item.col-2
.item-wrapper
= render partial:'img_tile', locals: {:index => (i.to_i) - 1}
- if @book.slug == 'redpoint'
- if i.to_i == 2
.item.col-2{:trackable => "clicked on 'about the author' tile"}
= render partial:'author', locals: {book: @book}
- if i.to_i == 1 && @book.slug == 'redpoint'
.item.col-2{:trackable => "Clicked on 'join the discussion' tile"}
= render partial:'join_disc', locals: {book: @book}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment