Guest User

Untitled

a guest
Sep 18th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. .row-fluid
  2. = debug params
  3. = paginate @themes
  4. - @themes.each_slice(2) do |themes|
  5. .row-fluid
  6. - themes.each do |theme|
  7. .span6
  8. .theme
  9. .flag
  10. %span{:class => "price"}= "$#{theme.price.to_i}"
  11. %span
  12. = image_tag ("flag_shoppingCart.png")
  13. %span.sold= 400
  14. .preview
  15. = link_to image_tag(theme.image_url.to_s), user_theme_path(theme.user, theme)
  16. %footer
  17. %span.thumb
  18. - if !theme.user.avatar.blank?
  19. = link_to image_tag(theme.user.avatar_url(:med_thumb).to_s), user_path(theme.user)
  20. - else
  21. = link_to image_tag("gravatar.jpg", :class => "thumb"), user_path(theme.user)
  22. %h1.title
  23. = theme.title
  24. %span.author
  25. by
  26. = link_to theme.user_name, user_path(theme.user)
Advertisement
Add Comment
Please, Sign In to add comment