Permalink
Browse files

showing captions

  • Loading branch information...
1 parent 7bc4d7d commit af7881f6df660341c5e9c59b5bee24ca813e9e23 @andrewpbrett committed Nov 28, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/images/_show.html.haml
  2. +1 −1 app/views/images/index.html.haml
@@ -7,7 +7,7 @@
= link_to image.created_at.strftime("%b %d"), images_path(image.permalink)
.clear.medium
.image_wrapper{ :class => size == :small ? "thumbnail" : "" }
- %a.gallery_image{ :href => image.image.url(:original), :rel => "gallery" }
+ %a.gallery_image{ :href => image.image.url(:original), :rel => "gallery", :title => image.caption }
%img{ :src => "#{image.image.url(size)}" }
- if show_caption
.caption
@@ -1,6 +1,6 @@
#images
- @images.each_with_index do |image, i|
- = render :partial => "show", :locals => { :image => image, :size => :small, :show_caption => true }
+ = render :partial => "show", :locals => { :image => image, :size => :small }
- if i % 6 == 5
.clear
.clear

0 comments on commit af7881f

Please sign in to comment.