From 2c92b48040fe4c09bec47c956a7a18a98a5b3dad Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Tue, 5 May 2026 21:19:21 -0500 Subject: [PATCH] Fix colors on the proctor login page for dark mode. The colors for this were inline style. Colors cannot be inline anymore since the server cannot detect if the user will have the browser in dark mode or not. So this switches to using Bootstrap alerts instead. --- templates/ContentGenerator/LoginProctor.html.ep | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/ContentGenerator/LoginProctor.html.ep b/templates/ContentGenerator/LoginProctor.html.ep index 02635f8309..fb3e8545fe 100644 --- a/templates/ContentGenerator/LoginProctor.html.ep +++ b/templates/ContentGenerator/LoginProctor.html.ep @@ -16,14 +16,14 @@ % # Print a message about submission times if we're submitting an answer. % if (param('submitAnswers')) { % my $dueTime = $userSet->due_date; - % my ($color, $msg) = ('#ddddff', ''); + % my ($alertClass, $msg) = ('alert-primary', ''); % if ($dueTime + $ce->{gatewayGracePeriod} < $submitTime) { - % $color = '#ffffaa'; + % $alertClass = ' alert-warning'; % $msg = maketext('The time limit on this assignment was exceeded. The assignment may be checked, ' % . 'but the result will not be counted.'); % } % -
+