Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% for listing in @listings %>
- <% first_shown=false%>
- <tr>
- <td>
- <% @slideshows.each do |slideshow| %>
- <% if slideshow.listing.id == listing.id %>
- <% if first_shown=false %>
- <%= link_to image_tag(listing.listing_thumbnail_image.url), slideshow.data.url, :class => "gallery#{listing.id}", :rel => "gallery#{listing.id}" %>
- <% first_shown=true %>
- <% end %>
- <%= link_to '', slideshow.data.url, :class => "gallery#{listing.id}", :rel => "gallery#{listing.id}" %>
- <% end %>
- <% end %>
- </td>
- </tr>
- <tr>
- <td><%= link_to image_tag("Properties/PDF-Button.png"), listing.listing_flier_pdf.url %></td>
- </tr>
- <% if can? :create, Listing %>
- <tr>
- <td>
- <%= link_to "Show", [@property, listing] %>
- <%= link_to "Edit", edit_property_listing_path(@property, listing) %>
- <%= link_to "Destroy", [@property, listing], :confirm => 'Are you sure?', :method => :delete %>
- </td>
- </tr>
- <% end %>
- <% end %>
Add Comment
Please, Sign In to add comment