Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 18th, 2012  |  syntax: None  |  size: 0.92 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)