Skip to content

Commit 0a708ee

Browse files
authored
Merge pull request openwebwork#2830 from drgrice1/fix-test-page-nav
Fix the math in the test page navigation.
2 parents d712732 + d52865d commit 0a708ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/ContentGenerator/GatewayQuiz.html.ep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,9 @@
459459
% end
460460
% for my $i (1 .. $numPages) {
461461
% content_for 'gw-navigation-pages' => begin
462-
<td colspan="<%= $i == $numPages ? (@$problem_numbers % $numProbPerPage) : $numProbPerPage %>"
462+
<td colspan="<%= $i == $numPages && (@$problem_numbers % $numProbPerPage)
463+
? (@$problem_numbers % $numProbPerPage)
464+
: $numProbPerPage %>"
463465
class="<%= $i == $pageNumber ? 'page active' : 'page' %>">
464466
% if ($i == $pageNumber) {
465467
<%= $i =%>

0 commit comments

Comments
 (0)