Module: ImageGallery::Filters
- Defined in:
- lib/gallery/gallery.rb
Instance Method Summary collapse
Instance Method Details
#gallery_index_url(year) ⇒ Object
383 384 385 386 |
# File 'lib/gallery/gallery.rb', line 383 def gallery_index_url(year) site = @context.registers[:site] "/#{ImageGallery.gallery_path_array(site, year).join('/')}/" end |
#gallery_url(gallery) ⇒ Object
376 377 378 379 380 381 |
# File 'lib/gallery/gallery.rb', line 376 def gallery_url(gallery) site = @context.registers[:site] creation_time = gallery['datetime'] gallery_path = ImageGallery.gallery_path_array(site, creation_time['year'], creation_time['month']).join('/') "/#{gallery_path}/#{gallery['id']}.html" end |