Commit 16fb3318

mo k <mo@mokhan.ca>
2012-09-21 03:34:49
try to update the creation gallery to use the default thumbnail layout. i know, i know you don't like it... but this was the simplest thing i could do with the latest version of bootstrap.
1 parent f64bdd5
Changed files (1)
app/views/shared/_creation_image_gallery.html.erb
@@ -2,17 +2,16 @@
   <% @creations.each do |creation| %>
     <li class="span3">
     <div class="thumbnail">
-      <div class="caption">
-        <h5><a href="<%= url_for creation %>"><%= short_name(creation, 20) %></a></h5>
-        <h6><a href="<%= url_for profile_path(creation.user) %>"><%= shrink(creation.user.name, 20) %></a></h6>
-      </div>
       <a href="<%= url_for creation %>"><img src="<%= creation.image.thumb.url %>" alt="<%= creation.name %>" style="width:260px;height:180px;" /></a>
-      <div class="caption">
-        <a href="<%= url_for creation_favorites_path(:creation_id => creation.id) %>"><span><%= creation.favorites.count %></span><i class="icon-heart"></i></a>
-        <a href="<%= url_for creation %>#comments"><span class="badge badge-success" title="<%= pluralize( creation.comment_threads.count, "comments") %>"><%= creation.comment_threads.count %></span></a>
-      </div>
+      <h3><a href="<%= url_for creation %>"><%= short_name(creation, 15) %></a></h3>
+      <h4><small><a href="<%= url_for profile_path(creation.user) %>"><%= shrink(creation.user.name, 20) %></a></small></h4>
+      <p>
+      <a href="<%= url_for creation_favorites_path(:creation_id => creation.id) %>"><span><%= creation.favorites.count %></span><i class="icon-heart"></i></a>
+      <a href="<%= url_for creation %>#comments"><span class="badge badge-success" title="<%= pluralize( creation.comment_threads.count, "comments") %>"><%= creation.comment_threads.count %></span></a>
+      </p>
     </div>
     </li>
   <% end %>
 </ul>
+
 <%= render "shared/paging" %>