$tr->defmap(class => $data);
$tr->fclass('result_text')->attr(class => "r$data->{result}")
};
+ $tree->fclass('result_text')->replace_content($args{result_text});
+ $tree->fclass('result_text')->attr(class => "r$args{result}");
$args{results} ? $tree->fid('results')->find('tbody')->find('tr')->iter3($args{results}, $iter) : $tree->fid('results')->detach;
$tree->fid('no_results')->detach if $tree->fid('results') || $tree->fid('errors');
}
<dt>Problem</dt> <dd id="problem"><a href="/pb/id">problem</a></dd>
<dt>Contest</dt> <dd id="contest"><a href="/ct/id">contest</a></dd>
<dt>Source</dt> <dd><a id="source" href="/src/id">1.55 KB</a></dd>
+<dt>Result</dt> <dd class="result_text">Accepted</dd>
<div id="errors">
<h2>Compiler output</h2>