]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/Log.pm
Fix some small bugs
[gruntmaster-page.git] / lib / Gruntmaster / Page / Log.pm
index a86b1532feef74dd1764a26ffc621948f8efd380..5a2b4c6a91d36cb13a846479f91f6baedb79ff05 100644 (file)
@@ -10,10 +10,14 @@ our $VERSION = '0.001';
 use constant TITLE => 'Job log';
 use constant PAGE_SIZE => 10;
 
+use constant FORMAT_EXTENSION => {
+  CPP => 'cpp',
+};
+
 use HTML::Template::Compiled;
 use POSIX qw/strftime/;
 use Gruntmaster::Page::Common qw/header footer/;
-use Gruntmaster::Data qw/job_date job_file job_name job_private job_problem job_result job_result_text job_user/;
+use Gruntmaster::Data qw/job_date job_file problem_name job_private job_problem job_result job_result_text job_user/;
 
 my %templates = (
        en => <<'HTML',
@@ -22,9 +26,9 @@ my %templates = (
 <tr><th>ID<th>Problem<th>Date<th>Size<th>User<th>Result
 <tbody>
 <tmpl_loop log><tr><td><a href="<tmpl_var id>"><tmpl_var id></a>
-<td><a href="/pb/<tmpl_var problem>"><tmpl_var name></a>
+<td><a href="../pb/<tmpl_var problem>"><tmpl_var name></a>
 <td><tmpl_var date>
-<td><tmpl_var size></a>
+<td><a href="src/<tmpl_var filename>"<tmpl_if private> data-private</tmpl_if>><tmpl_var size></a></a>
 <td><tmpl_var user><td class="r<tmpl_var result>"><tmpl_var result_text>
 </tmpl_loop>
 </table>
@@ -44,7 +48,7 @@ sub generate{
                id => $_,
                (job_private() ? (private => job_private) : ()),
                date => (job_date() ? strftime ('%c' => localtime job_date) : '?'),
-               name => job_name,
+               name => problem_name job_problem,
                problem => job_problem,
                result => job_result,
                result_text => job_result_text,
This page took 0.022214 seconds and 4 git commands to generate.