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};
$tree->content_handler(
start => ftime $args{start},
<div id="links">
<a href="/pb/?contest=contest_id">Problems</a><br>
-<a href="/ed/contest_id">Editorial</a><br>
+<a href="/ed/contest_id" id="editorial">Editorial</a><br>
<a href="/log/?contest=contest_id">Job log</a><br>
<a href="/st/contest_id">Standings</a>
</div>