Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% if @real_estate.try(:real_estate_photos).try(:size).to_i > 0 %>
- <div id="galleria" style="height:450px;">
- <% @real_estate.real_estate_photos.to_a.each do |photo| %>
- <a href="<%= url_for photo.photo.url(:orginal) %>"><img src="<%= url_for photo.photo.url(:thumb) %>" alt="<%= @real_estate.title %>"></a>
- <% end %>
- </div>
- <% if @real_estate.reserved? %>
- <img src="/images/rezervuota.png" id="rezervuota" alt="Rezervuota" />
- <% end %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement