From: Marius Gavrilescu Date: Wed, 26 Mar 2014 05:50:31 +0000 (+0200) Subject: Attempt to fix job log links X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=commitdiff_plain;h=251f53e4ff1871fdaee0202f994bf3d6b28b8ec9 Attempt to fix job log links --- diff --git a/lib/Gruntmaster/Page/Generic.pm b/lib/Gruntmaster/Page/Generic.pm index efb2721..eefa908 100644 --- a/lib/Gruntmaster/Page/Generic.pm +++ b/lib/Gruntmaster/Page/Generic.pm @@ -162,11 +162,13 @@ thing { }; sortby { $b->{id} <=> $a->{id}}; mangle { + my $env = shift; $_->{results} &&= decode_json $_->{results}; $_->{owner_name} = $_->{rs}->owner->name; $_->{problem_name} = $_->{rs}->problem->name; $_->{size} = length $_->{source}; delete $_->{source}; + $_->{pageprefix} = $env->{'gruntmaster.page'} == -1 ? 'page/' : ''; } }; diff --git a/tmpl/log.en b/tmpl/log.en index f2c7983..d4229d6 100644 --- a/tmpl/log.en +++ b/tmpl/log.en @@ -12,6 +12,6 @@