My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 4 attachment: clickable_image.diff (1.2 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Index: show.rhtml
===================================================================
--- show.rhtml (revision 24)
+++ show.rhtml (working copy)
@@ -8,15 +8,20 @@
<li><a href="/store">Back to store index</a></li>
</ul>
<% if @default_image %>
- <div style="float:left; margin:20px; width: 200px;">
- <% if @default_image.public_filename(:small) then %>
- <%= image_tag(@default_image.public_filename(:small)) %>
+ <% if @images.size == 1 %>
+ <div style="float:left; margin:20px; width: 400px;">
+ <% else %>
+ <div style="float:left; margin:20px; width: 200px;">
+ <% end %>
+
+ <% if @default_image.public_filename then %>
+ <a href="<%= @default_image.public_filename %>" class="submodal-800-400"><%= image_tag(@default_image.public_filename, :width => 500) %></a>
<% end %>
<!-- thumbnails! -->
<% if @images.size > 1 %>
<h4>Other product images</h4>
<p class="info">Click to see full view</p>
- <% for @p_image in @images do %>
+ <% for @p_image in @images[1..-1] do %>
<!-- product image for reordering -->
<div class="float" style="margin:5px;">
<% if @p_image.public_filename(:thumb) then %>
Powered by Google Project Hosting