]> iEval git - plack-app-gruntmaster.git/commitdiff
Display problem level in pb_entry
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 15 Jan 2015 09:02:58 +0000 (11:02 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 15 Jan 2015 09:02:58 +0000 (11:02 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/pb_entry.en

index f2ce142269abbc94f5b1f46951cde1b193c9da18..5ea06265ec9d3b11980ba9147a6e5b431d97ed25 100644 (file)
@@ -141,6 +141,7 @@ sub process_pb_entry {
        $tree->fid('job_log')->edit_href(sub{$_ .= "&private=$args{private}"}) if $args{private};
        $tree->content_handler(
                statement => literal $args{statement},
+               level     => ucfirst $args{level},
                author    =>         $args{author},
                owner     =>         $args{owner_name} || $args{owner});
        if ($args{contest_stop}) {
index f9df19607712fa2297f1853e4e743a1fb33e65aa..ae968e90543801a88f1cd7329f44171cf06e208d 100644 (file)
@@ -7,6 +7,7 @@
 <dl>
 <dt>Author</dt> <dd id="author">author</dd>
 <dt>Owner</dt> <dd id="owner">owner</dd>
+<dt>Level</dt> <dd id="level">Easy</dd>
 <dt class="rc">Score</dt> <dd id="score" data-value="100" class="rc">50</dd>
 <dt class="rc">Contest ends in</dt> <dd id="countdown" data-start="..." data-time="..." data-stop="..." class="rc">01:30</dd>
 </dl>
This page took 0.030373 seconds and 4 git commands to generate.