X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FSubmit.pm;h=36bfd67f18131e21ea4c829b5512c1af394631bb;hb=c2a23f84f4699ce135f517450a0bc153410ca223;hp=a57b7b177b05d52f27e77eb0aa219f254f77a320;hpb=832cb45e325364ca1de645a2256efa69284fcf06;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Submit.pm b/lib/Gruntmaster/Page/Submit.pm index a57b7b1..36bfd67 100644 --- a/lib/Gruntmaster/Page/Submit.pm +++ b/lib/Gruntmaster/Page/Submit.pm @@ -3,21 +3,14 @@ package Gruntmaster::Page::Submit; use 5.014000; use strict; use warnings; -use parent qw/Exporter/; -our @EXPORT_OK = qw/generate/; +use Gruntmaster::Page::Base submit => 'Submit job'; +our @ISA = qw/Gruntmaster::Page::Base/; our $VERSION = '0.001'; -use constant FORMATS => [qw/CPP/]; -use constant TITLE => 'Submit job'; +use constant FORMATS => [qw/C CPP MONO JAVA PASCAL PERL PYTHON RUBY/]; -use Fcntl qw/:flock/; -use HTML::Template::Compiled; -use IO::File; -use YAML::Any qw/LoadFile/; -use Gruntmaster::Page::Common qw/header footer/; - -my %templates = ( - en => <<'HTML', +use constant TEMPLATES => { + en => <<'HTML',