Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created February 1, 2009 19:47
Show Gist options
  • Save brandon-beacher/55964 to your computer and use it in GitHub Desktop.
Save brandon-beacher/55964 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)
= 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