Skip to content

Instantly share code, notes, and snippets.

@JonathanVeg
Created May 12, 2013 23:17
Show Gist options
  • Save JonathanVeg/5565328 to your computer and use it in GitHub Desktop.
Save JonathanVeg/5565328 to your computer and use it in GitHub Desktop.
#block-books
#sectionDisciplines0.sectionDisciplines
- @books.each do |b|
.book-item
- if b.matter_id == @ids[0]
%a{:href => ""}
= image_tag b.avatar.url
%a.title-item-book{:href => ""}
%p
= b.name
%p
= b.publisher
#sectionDisciplines1.sectionDisciplines
- @books.each do |b|
.book-item
- if b.matter_id == @ids[1]
%a{:href => ""}
= image_tag b.avatar.url
%a.title-item-book{:href => ""}
%p
= b.name
%p
= b.publisher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment