Commit eeb3d398

mo k <mo@mokhan.ca>
2012-07-26 12:39:11
change additional photo upload limit from 3 to 4.
1 parent 4718ab5
Changed files (2)
app/views/creations/edit.html.erb
@@ -36,7 +36,7 @@
     </ul>
     <p>Second thoughts? <%= link_to 'Delete', creation_path(@creation),:confirm => "Are you sure", :method => :delete, :class => 'btn btn-danger' %> </p>
     <hr />
-    <% if @creation.photos.length < 3 %>
+    <% if @creation.photos.length < 4 %>
       <h3>Add another photo</h3>
       <% unless @creation.new_record? %>
         <%= form_tag(creation_photos_path(@creation), :method => "post", :multipart => true) do |f| %>
app/views/creations/show.html.erb
@@ -27,7 +27,7 @@
         <li class="span3"><a class="thumbnail" href="#"><img src="<%= photo.image.thumb.url.to_s %>" alt="<%= @creation.name %>" /></a></li>
       <% end %>
       <% if @creation.user == current_user %>
-        <% if @creation.photos.length < 3 %>
+        <% if @creation.photos.length < 4 %>
           <div class="span3 visible-desktop">
             <h4>Add more photos to this creation</h4>
             <% unless @creation.new_record? %>