Commit e1184ab7

luuduong <luuduong@gmail.com>
2013-12-31 21:15:20
udated the show page to show link to carousel next to the thumbnails and also on the thumbnail
1 parent 498d4e4
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -64,12 +64,16 @@ $(function() {
 <% if @creation.photos_count > 1 %>
   <div class="row">
     <div class="span12">
-      <%= link_to "view #{pluralize(@creation.photos_count, "photo")} &raquo;".html_safe, creation_photos_path(@creation), :class => "pull-right" %>
+      <%= link_to "View #{pluralize(@creation.photos_count, "photo")} &raquo;".html_safe, creation_photos_path(@creation) %>
     </div>
     <div class="span12">
       <ul class="thumbnails">
       <% @creation.photos.each do |photo| %>
-        <li class="span2"><%= image_tag photo.image.thumb.url, :class => "thumbnail" %></li>
+        <li class="span2">
+          <%= link_to creation_photos_path(@creation) do %>
+            <%= image_tag(photo.image.thumb.url, :class => "thumbnail") %>
+          <% end %>
+        </li>
       <% end %>
       </ul>
     </div>