diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-11 12:47:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-11 12:47:03 +0200 |
commit | 37e01869f108f394ed2d93590b4a51b1547c8cb4 (patch) | |
tree | 0dc3ce5a09bcffa9edeaa626b8791d62102c358a /bin | |
parent | 00eb1cca8777099861b679b84a45f7099c4af90e (diff) |
Fix newline bug, make image name clickable
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gen-xhtml-thumbnails | 15 |
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"; |