Created
June 26, 2014 06:18
-
-
Save walidvb/f0aa24ab1ec211d0fed5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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