X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/0788c4247ca8ea24d8238a910a68efb9e7e3a04a..3a619ed93038baf5568d87d3d4a24056e813e8af:/writer.plp diff --git a/writer.plp b/writer.plp index 2df9e55..bae010c 100644 --- a/writer.plp +++ b/writer.plp @@ -40,9 +40,6 @@ input:not([type]) { select { padding: .3rem .2rem; /* TODO: input */ } -form > ul li img { - max-width: 300px; -} ul.popup { display: flex; @@ -105,14 +102,14 @@ my $db = eval { my @wordcols = ( lang => 'Language', cat => 'Category', + ref => undef, # included with cat + prio => 'Level', + cover => undef, # included with prio form => 'Translation', alt => 'Synonyms', wptitle => 'Wikipedia', - source => 'Image URL', + source => 'Image', thumb => 'Convert options', - prio => 'Level', - cover => undef, # included with prio - ref => 'Reference', ); my @prioenum = qw( essential basic common distinctive rare invisible ); my ($find) = map {{id => $_}} $fields{id} || $Request || (); @@ -231,12 +228,16 @@ for my $colinfo (pairs @wordcols) { } else { printf '', $col, Entity($val); - -e and printf '%s', $_, $row->{form} for - $col eq 'source' ? "data/word/org/$row->{id}.jpg" : - $col eq 'thumb' ? "data/word/eng/$row->{form}.jpg" : - (); + -e and printf '%s', $_, $row->{form} + for $col eq 'thumb' ? "data/word/eng/$row->{form}.jpg" : (); + printf('', + 'ref', 'Reference', Entity($row->{ref}) + ) if $col eq 'cat'; } print ''; + -e and printf('', + $col, $_, $row->{form} + ) for $col eq 'source' ? "data/word/org/$row->{id}.jpg" : (); say '

'; } :>