fix slideshow url according to different sizes
authorgc <gc>
Mon, 7 Mar 2005 21:15:40 +0000 (21:15 +0000)
committergc <gc>
Mon, 7 Mar 2005 21:15:40 +0000 (21:15 +0000)
booh
themes/simple/skeleton_thumbnails.html

diff --git a/booh b/booh
index 946d81deeaf7ba85d823a8b4b3f2c6c3d3cdf1cc..826b8f0d182717ec1af24b1fed7f36538027765e 100755 (executable)
--- a/booh
+++ b/booh
@@ -370,7 +370,7 @@ def walk_source_dir
             html = $html_thumbnails.collect { |l| l.clone }
             iterations = {}
             for i in html
-                i.sub!(/~~run_slideshow~~/, _('Run slideshow!'))
+                i.sub!(/~~run_slideshow~~/, '<a href="image-' + sizeobj['name'] + '.html?run_slideshow">' + _('Run slideshow!') + '</a>')
                 i.sub!(/~~title~~/, File.basename(dir))
                 for sizeobj2 in $images_size
                     if sizeobj != sizeobj2
index ba258361d141e8db3566a74a0cc2ff02c193d82d..17cf7fef50466bfa0f35a0626fe30aca2017ba65 100644 (file)
@@ -11,7 +11,7 @@
 
 <p align="center"><font size="-2">[ ~~size_small~~ | ~~size_medium~~ | ~~size_large~~ ]</font></p>
 
-<p align="center"><a href="image.html?run_slideshow">~~run_slideshow~~</a></p>
+<p align="center">~~run_slideshow~~</p>
 
 <table width="100%">
 ~~iterate1_open~~