projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
025acbd
)
Hide solution link on problems without solution
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 10 Jan 2015 13:26:23 +0000
(15:26 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 10 Jan 2015 13:26:23 +0000
(15:26 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Plack/App/Gruntmaster/HTML.pm
b/lib/Plack/App/Gruntmaster/HTML.pm
index 5505a3917973f1f7991b4f691433018b68a521aa..91f1fc4baf091583245eb1ca3c5379cb470ff509 100644
(file)
--- a/
lib/Plack/App/Gruntmaster/HTML.pm
+++ b/
lib/Plack/App/Gruntmaster/HTML.pm
@@
-157,6
+157,7
@@
sub process_pb_entry {
$_->detach for $tree->fclass('rc'); # requires contest
$tree->fid('solution_modal')->fclass('modal-body')->replace_content(literal $args{solution});
}
+ $tree->fid('solution')->detach unless $args{solution};
if ($args{cansubmit}) {
$tree->look_down(name => 'problem')->attr(value => $args{id});
my $contest = $tree->look_down(name => 'contest');
This page took
0.010598 seconds
and
4
git commands to generate.