Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="gift_obj">
- <div class="gift_lc"><img class="gift_picture" src="images/no_pic_gift.gif" /><br /><a href=""><img src="images/reserve_btn.gif" /></a></div>
- <div class="gift_info">
- <p><%= link_to "#{wanted_gift.name}", wanted_gift.link.url ,{:class => "gift_name" }%><span class="gift_price"><%= wanted_gift.unit.symbol %><%= number_with_precision(wanted_gift.price,2) %></span></p>
- <p><% wanted_gift.tags.each do |tag| %><%= link_to tag.name.upcase, {:action=>'tags', :id=>tag.name} ,{:class => "tag" } %> <% end %></p>
- <p><%= wanted_gift.description %></p>
- <% @similar_wanted_gifts = wanted_gift.other_similar_wanted_gifts %>
- <% @similar_received_gifts = wanted_gift.other_similar_received_gifts %>
- <% unless @similar_wanted_gifts.size == 0 %>
- <p><span class="green_0<%= (@max_people.to_f * @similar_wanted_gifts.size**(0.25)).ceil %>" href=""><%= link_to "#{@similar_wanted_gifts.size} other " + (@similar_wanted_gifts.size == 1 ? "person" : "people"), {:action => 'other_people_who_want',:id=>secret_id(wanted_gift.id)},{:class => "green" } %></span> <%= (@similar_wanted_gifts.size == 1 ? "wants" : "want") %> this...</p>
- <% end %>
- <% unless @similar_received_gifts.size == 0 %>
- <p><span class="green_0<%= (@max_people.to_f * @similar_received_gifts.size**(0.25)).ceil %>" href=""><%= link_to "#{@similar_wanted_gifts.size} other " + (@similar_wanted_gifts.size == 1 ? "person" : "people"), {:action => 'other_people_who_want',:id=>secret_id(wanted_gift.id)},{:class => "green" } %></span><%= (@similar_received_gifts.size == 1 ? "has" : "have") %> this... </p>
- <% end %>
- <p><%= link_to "Other places to buy this", {:action=>'other_places',:id=>secret_id(wanted_gift.id)} ,{:class => "cart" } %></p>
- <% unless @viewing_contact.wants_gift?(wanted_gift) or @viewing_contact.has_gift?(wanted_gift) %>
- <p><%= link_to 'I want this, add it to my list', {:action=>'duplicate', :id=>secret_id(wanted_gift.id)} ,{:class => "want" } %> / <%= link_to 'I have this', {:action=>'duplicate', :id=>secret_id(wanted_gift.id), :have => 'true'} ,{:class => "want" } %></p>
- <% end %>
- </div>
- </div>
Add Comment
Please, Sign In to add comment