]> iEval git - gruntmaster-page.git/blobdiff - lib/Plack/App/Gruntmaster/HTML.pm
Merge branch 'master' into newmc
[gruntmaster-page.git] / lib / Plack / App / Gruntmaster / HTML.pm
index f9f1eb732fa8d93a0651b08a72e6f4e24c1f4a49..dc7b12369ce3079f53671bd353c284e063462fa7 100644 (file)
@@ -71,6 +71,7 @@ sub _render {
 
 sub process_skel {
        my ($tree, %args) = @_;
+       $tree->fid('logo')->replace_with(literal scalar read_file "mclogo.svg");
        $tree->content_handler(
                title   =>         $args{title},
                content => literal $args{meat});
@@ -114,6 +115,7 @@ sub process_us {
 sub process_ct_entry {
        my ($tree, %args) = @_;
        $_->edit_href (sub {s/contest_id/$args{id}/}) for $tree->find('a');
+       $tree->fid('editorial')->detach unless $args{finished};
        $tree->fid('links')->detach unless $args{started};
        my $status = ($args{time} < $args{start} ? 'starts' : 'ends');
        $tree->fclass('timer')->attr('data-stop', $status eq 'ends' ? $args{stop} : $args{start});
This page took 0.021459 seconds and 4 git commands to generate.