X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_age;h=a90ca3469811b249d5d9c3cde0364d63a136662b;hb=d1140fe21c4a6cdb1ba9c02e26b80d71ffe31965;hp=28d6a5f667074203c49451d522ad55b7d9fb1254;hpb=fd6bf359d9051fe0c6d269a44bcc08cc53aa2fea;p=ypp-sc-tools.db-test.git diff --git a/yarrg/web/query_age b/yarrg/web/query_age index 28d6a5f..a90ca34 100644 --- a/yarrg/web/query_age +++ b/yarrg/web/query_age @@ -40,24 +40,6 @@ $dbh <%once> -my $meta_prettyprint_age= sub { - my ($age,$floor,$plus) = @_; - return <('$age','floor','.').' - }; -' or die "$@"; @@ -97,7 +79,7 @@ $sth->execute(); > <% $row->{'archipelago'} |h %> <% $row->{'islandname'} |h - %> <% $prettyprint_age->($age) %> + %> <% prettyprint_age($age) %> % } @@ -129,7 +111,7 @@ Time since this page loaded: var cellid= 'c'+rowid; var el= document.getElementById(cellid); var age= oldage + (now - da_pageload) / 1000; - var newhtml= <% $meta_prettyprint_age->('age','Math.floor','+') %>; + var newhtml= <% meta_prettyprint_age('age','Math.floor','+') %>; % if ($ARGS{debug}) { if (cellid == 'cid_loaded') debug('element rowid='+rowid+' cellid='+cellid