Commit a2fb0cda

mo k <mo@mokhan.ca>
2012-02-14 04:03:48
chop the title if the name of a creation is very long.
1 parent 7a6b4b5
Changed files (1)
app/views/shared/_creation_image_gallery.html.erb
@@ -3,7 +3,7 @@
     <li class="span3">
     <div class="thumbnail">
       <div class="caption">
-        <h5><%= creation.name %></h5>
+        <h5><%= creation.name.split[0...4].join(' ') %></h5>
         <a href="<%= url_for creation %>">
           <img src="<%= creation.image.thumb.url %>" alt="<%= creation.name %>" width="260px" height="180px" />
         </a>