Update formats
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Jan 2014 19:43:09 +0000 (21:43 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Jan 2014 19:54:33 +0000 (21:54 +0200)
lib/Gruntmaster/Page/Log.pm
lib/Gruntmaster/Page/Pb/Entry.pm
lib/Gruntmaster/Page/Submit.pm

index dddd86eb9883d18becb146ca90bd826f8a1fa0f9..14d9c62d6d1f1e548e349ae0bcba7e19388829a7 100644 (file)
@@ -10,7 +10,14 @@ our $VERSION = '0.001';
 use constant PAGE_SIZE => 10;
 
 use constant FORMAT_EXTENSION => {
-  CPP => 'cpp',
+       C => 'c',
+       CPP => 'cpp',
+       MONO => 'cs',
+       JAVA => 'java',
+       PASCAL => 'pas',
+       PERL => 'pl',
+       PYTHON => 'py',
+       RUBY => 'rb',
 };
 
 use constant TEMPLATES => {
index 93ea5a585f7345b0ce6637d79b7e3feb3644051f..dbf66b47457f419d8dbc4403468f2f00650cabad 100644 (file)
@@ -7,8 +7,6 @@ use Gruntmaster::Page::Base pb_entry => '<tmpl_var name>';
 our @ISA = qw/Gruntmaster::Page::Base/;
 our $VERSION = '0.001';
 
-use constant FORMATS => [qw/CPP/];
-
 use constant TEMPLATES => {
        en => <<'HTML',
 <tmpl_var ESCAPE=0 statement>
@@ -42,7 +40,7 @@ sub _generate{
                $htc->param(cansubmit => time >= contest_start $contest && time <= contest_end $contest);
                $htc->param(contest => $contest);
        }
-       $htc->param(formats => FORMATS);
+       $htc->param(formats => Gruntmaster::Page::Submit::FORMATS);
        $htc->param(id => $id);
        local $Gruntmaster::Data::contest = $contest if $contest;
        $htc->param(name => problem_name $id);
index cdb4f7d5fc396b6547ef7a71c4925ad7b5ff54c4..36bfd67f18131e21ea4c829b5512c1af394631bb 100644 (file)
@@ -7,7 +7,7 @@ use Gruntmaster::Page::Base submit => 'Submit job';
 our @ISA = qw/Gruntmaster::Page::Base/;
 our $VERSION = '0.001';
 
-use constant FORMATS => [qw/CPP/];
+use constant FORMATS => [qw/C CPP MONO JAVA PASCAL PERL PYTHON RUBY/];
 
 use constant TEMPLATES => {
        en => <<'HTML',
This page took 0.012363 seconds and 4 git commands to generate.