From: Marius Gavrilescu Date: Tue, 25 Mar 2014 11:58:47 +0000 (+0200) Subject: Merge branch 'master' into gruntmaster X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=commitdiff_plain;h=bd86f820f0ea665d33aaa6c27ad5bede7d1d1f8c;hp=95f6e82c13f99d51f67dea72e024fafc1e4cd655 Merge branch 'master' into gruntmaster --- diff --git a/lib/Gruntmaster/Page/Generic.pm b/lib/Gruntmaster/Page/Generic.pm index 35d89ad..9e07d4c 100644 --- a/lib/Gruntmaster/Page/Generic.pm +++ b/lib/Gruntmaster/Page/Generic.pm @@ -123,7 +123,7 @@ thing { my $db = db $env; return $db->problems->search({owner => $env->{'gruntmaster.user'}}) if exists $env->{'gruntmaster.user'}; return $db->problems->search({'contest_problems.contest' => $env->{'gruntmaster.contest'}}, {join => 'contest_problems'}) if exists $env->{'gruntmaster.contest'}; - $db->problems->search({-or => ['contest_problems.contest' => undef, 'contest.stop' => {'<=', time}], 'me.private' => 0}, {join => {'contest_problems' => 'contest'}}); + $db->problems->search({-or => ['contest_problems.contest' => undef, 'contest.stop' => {'<=', time}], 'me.private' => 0}, {join => {'contest_problems' => 'contest'}, distinct => 1}); }; sortby { $a->{name} cmp $b->{name}}; group { $_->{level} }; diff --git a/tmpl/ct.en b/tmpl/ct.en index 038fef0..9420708 100644 --- a/tmpl/ct.en +++ b/tmpl/ct.en @@ -12,13 +12,13 @@ - -

Pstoping contests

+ +

Pending contests

-
NameStart dateStop dateOwner
+
<%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{start}; %> <%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{stop}; %>