Rails wrapper for greybox, comes with assets from GreyBox v5.53 (to upgrade greybox, replace contents of assets/greybox with new assets from release, assuming I haven't updated the plugin). Hopefully that's not against some license somewhere. :D
You can find GreyBox here: http://orangoo.com/labs/GreyBox/
script/plugin install git://github.com/ssoroka/greybox_on_rails.git
<%= greybox_link_to_image(image_tag('rockies_thumb.jpg'), "/images/rocky_mountains.jpg",
:title => 'From my trip to the rockies!') %>
also can be used as a block:
<% greybox_link_to_image nil, "/images/rocky_mountains.jpg", :title => 'From my trip to the rockies!' do %>
<%= image_tag('rockies_thumb.jpg') %>
<% end %>
<%= greybox_link_to_page(nil, "http://www.google.ca", :title => 'This is google!') do
<%= greybox_link_to_page("View Google!", "http://www.google.ca", :title => 'This is google!') %>
wrap pages or images in greybox_links(group_name) to allow visitors to flip between them (Haven't tested mixing sites and images, my guess is it wouldn't work. stick to one or the other):
greybox_links "Nice pics" do
greybox_link_to_image "sunset", "sunset.jpg"
greybox_link_to_image "sunset 2", "sunset2.jpg"
run rdoc to generate documentation from source.
"rake" to run tests. They passed, I swear. :D
|Created||22 October 2007|