~mdw
/
tgal
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce multiple thumbnail strips, and select one in a sensible way.
[tgal]
/
mason
/
dhandler
diff --git
a/mason/dhandler
b/mason/dhandler
index
011c561
..
813e637
100755
(executable)
--- a/
mason/dhandler
+++ b/
mason/dhandler
@@
-107,7
+107,7
@@
Failed to find ‘<% $path |h %>’.
%
% if (@$dd) {
<h2>Subfolders</h2>
%
% if (@$dd) {
<h2>Subfolders</h2>
-% for my $size (qw{
big
thumb}) {
+% for my $size (qw{
med
thumb}) {
<div class="gallery <% $size %>">
% for my $d (@$dd) {
<& .thumbnail, target => $d->name . "/", comment => $d->comment,
<div class="gallery <% $size %>">
% for my $d (@$dd) {
<& .thumbnail, target => $d->name . "/", comment => $d->comment,
@@
-120,7
+120,7
@@
Failed to find ‘<% $path |h %>’.
%
% if (@$ff) {
<h2>Images</h2>
%
% if (@$ff) {
<h2>Images</h2>
-% for my $size (qw{
big
thumb}) {
+% for my $size (qw{
med
thumb}) {
<div class="gallery <% $size %>">
% for my $f (@$ff) {
<& .thumbnail, target => $f->name, comment => $f->comment,
<div class="gallery <% $size %>">
% for my $f (@$ff) {
<& .thumbnail, target => $f->name, comment => $f->comment,
@@
-200,7
+200,7
@@
Failed to find ‘<% $path |h %>’.
</div>
%
% my %img = map { $_ => TrivGal::Image->new($dir . "/" . $_->name) } @$ff;
</div>
%
% my %img = map { $_ => TrivGal::Image->new($dir . "/" . $_->name) } @$ff;
-% for my $size (qw{bigthumb}) {
+% for my $size (qw{
smallthumb medthumb
bigthumb}) {
<div class="thumbstrip <% $size %>">
% for my $f (@$ff) {
<& .thumbnail, target => $f->name, img => $img{$f}, size => $size,
<div class="thumbstrip <% $size %>">
% for my $f (@$ff) {
<& .thumbnail, target => $f->name, img => $img{$f}, size => $size,
@@
-251,7
+251,7
@@
Failed to find ‘<% $path |h %>’.
% if (defined $img) { $tn = $img->scale($size); }
% else { $tn = "$STATICURL/folder.svg"; }
% if ($focus) {
% if (defined $img) { $tn = $img->scale($size); }
% else { $tn = "$STATICURL/folder.svg"; }
% if ($focus) {
- <figure class="thumb
<% $size %>" id=focusthumb
>
+ <figure class="thumb
focusthumb <% $size %>"
>
<img class="thumb <% $size %>" load=lazy src="<% $tn |u %>">
<figcaption><span class=name><% $caption %></span></figcaption>
% } else {
<img class="thumb <% $size %>" load=lazy src="<% $tn |u %>">
<figcaption><span class=name><% $caption %></span></figcaption>
% } else {