Navigation Menu

Skip to content

Commit

Permalink
Fixed a small bug having to do with conditional release
Browse files Browse the repository at this point in the history
Fixed a small bug having to do with formatting certain forms
  • Loading branch information
goehle committed Dec 12, 2013
1 parent 4627c65 commit 37bc308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions htdocs/themes/math4/math4.css
Expand Up @@ -350,6 +350,7 @@ table.FormLayout tr { vertical-align: top; }
table.FormLayout th.LeftHeader { text-align: right; white-space: nowrap; }
table.FormLayout tr.ButtonRow { text-align: left; }
table.FormLayout tr.ButtonRowCenter { text-align: center; }
table.FormLayout td { padding-right:10px }

div.RenderSolo { background-color: #E0E0E0; color: black; }
div.AuthorComment { background-color: #00E0E0; color: black; }
Expand Down
4 changes: 2 additions & 2 deletions lib/WeBWorK/ContentGenerator/ProblemSets.pm
Expand Up @@ -488,9 +488,9 @@ sub setListRow {
$interactive = $name unless $preOpenSets;
} elsif (time < $set->open_date && @restricted) {
my $restriction = ($set->restricted_status)*100;
$status = $r->maketext("will open on [_1] if you score at least [_2]% on set [_3]", $self->formatDateTime($set->open_date,undef,$ce->{studentDateDisplayFormat}),sprintf("%.2",$restriction),@restricted) if scalar(@restricted) == 1;
$status = $r->maketext("will open on [_1] if you score at least [_2]% on set [_3]", $self->formatDateTime($set->open_date,undef,$ce->{studentDateDisplayFormat}),sprintf("%.2f",$restriction),@restricted) if scalar(@restricted) == 1;
if(@restricted > 1) {
$status = $r->maketext("will open on [_1] if you score at least [_2]% on sets", $self->formatDateTime($set->open_date,undef,$ce->{studentDateDisplayFormat}),sprintf("%.2",$restriction));
$status = $r->maketext("will open on [_1] if you score at least [_2]% on sets", $self->formatDateTime($set->open_date,undef,$ce->{studentDateDisplayFormat}),sprintf("%.2f",$restriction));
foreach(0..$#restricted) {
$status .= " $restricted[$_], " if $_ != $#restricted;
$status .= " and $restricted[$_]. " if $_ == $#restricted;
Expand Down

0 comments on commit 37bc308

Please sign in to comment.