summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-07-11 12:47:03 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-07-11 12:47:03 +0200
commit37e01869f108f394ed2d93590b4a51b1547c8cb4 (patch)
tree0dc3ce5a09bcffa9edeaa626b8791d62102c358a /bin
parent00eb1cca8777099861b679b84a45f7099c4af90e (diff)
Fix newline bug, make image name clickable
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen-xhtml-thumbnails15
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails
index bb9cd12..d93ac3e 100755
--- a/bin/gen-xhtml-thumbnails
+++ b/bin/gen-xhtml-thumbnails
@@ -103,7 +103,20 @@ foreach my $file (sort { lc($a) cmp lc($b) } @files) {
print {$index} "<a href=\"$file\"><img src=\".thumbs/$file\" alt=\"$file\" /></a>\n";
if ($thumb_show_names) {
- print {$index} "\n${file}";
+ print {$index} "<br />\n";
+
+ if ($css_source) {
+ print {$index}
+ "<a class=\"textlink\" href=\"${file}\">${file}</a>";
+ }
+ else {
+ printf {$index} (
+ '<a style="%s" href="%s">%s</a>',
+ 'text-decoration: none;',
+ $file,
+ $file,
+ );
+ }
}
print {$index} "</div>\n";