Commit 2185e4fa

mo khan <mo@mokhan.ca>
2013-07-02 03:41:55
show the large version in the photos carousel
1 parent b25c7c3
Changed files (2)
app
views
app/views/creations/show.html.erb
@@ -64,7 +64,7 @@ $(function() {
 <% if @creation.photos_count > 1 %>
   <div class="row">
     <div class="span12">
-      <%= link_to "view #{pluralize(@creation.photos_count-1, "other 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), :class => "pull-right" %>
     </div>
     <div class="span12">
       <ul class="thumbnails">
app/views/photos/index.html.erb
@@ -14,7 +14,7 @@
           <!-- Carousel items -->
           <div class="carousel-inner">
             <% @photos.each_with_index do |photo,index| %>
-              <div class="item <%= index == 0 ? "active" : "" %>"><%= image_tag photo.image.url, :class => "thumbnail" %></div>
+              <div class="item <%= index == 0 ? "active" : "" %>"><%= image_tag photo.image.large.url, :class => "thumbnail" %></div>
             <% end %>
           </div>
           <!-- Carousel nav -->