Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created May 24, 2009 15:26
Show Gist options
  • Save brandon-beacher/117145 to your computer and use it in GitHub Desktop.
Save brandon-beacher/117145 to your computer and use it in GitHub Desktop.
- require "enumerator"
#Images
- if images.empty?
%h4 No images
- else
- images.each_slice(3) do |slice|
.row
- slice.each do |image|
.image
= link_to image_tag(image.public_filename(:web)), management_image_path(@parish, image)
= link_to image.name, management_image_path(@parish, image)
= text_field_tag "", image.public_filename(:web), :size => 35
= ago image.updated
#Pagination= will_paginate images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment