mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #28 - Inverted warning bar texts -- focus on countdown.
This commit is contained in:
@@ -168,7 +168,7 @@ class auth_outage_renderer extends plugin_renderer_base {
|
||||
* Renders the warning bar.
|
||||
* @param outage $outage The outage to show in the warning bar.
|
||||
* @return string HTML of the warning bar.
|
||||
* @SuppressWarnings("unused") because $message is used inside require(...)
|
||||
* @SuppressWarnings("unused") because $countdown is used inside require(...)
|
||||
*/
|
||||
public function renderoutagebar(outage $outage) {
|
||||
global $CFG;
|
||||
@@ -176,7 +176,7 @@ class auth_outage_renderer extends plugin_renderer_base {
|
||||
$start = userdate($outage->starttime, get_string('strftimedatetimeshort'));
|
||||
$stop = userdate($outage->stoptime, get_string('strftimedatetimeshort'));
|
||||
|
||||
$message = get_string(
|
||||
$countdown = get_string(
|
||||
$outage->is_ongoing() ? 'messageoutageongoing' : 'messageoutagewarning',
|
||||
'auth_outage',
|
||||
['start' => $start, 'stop' => $stop]
|
||||
|
||||
@@ -22,7 +22,7 @@ If you need to make chances here, remember to update your settings inside Moodle
|
||||
color: #a00000;
|
||||
}
|
||||
|
||||
.auth_outage_warningbar_box_title {
|
||||
.auth_outage_warningbar_box_countdown {
|
||||
font-size: 200%;
|
||||
font-weight: bold;
|
||||
margin: 10px 0;
|
||||
|
||||
@@ -36,9 +36,9 @@ echo html_writer::tag('style',
|
||||
|
||||
<div class="auth_outage_warningbar">
|
||||
<div class="auth_outage_warningbar_box">
|
||||
<div class="auth_outage_warningbar_box_title"><?php echo $outage->get_title(); ?></div>
|
||||
<div class="auth_outage_warningbar_box_countdown" id="auth_outage_warningbar_countdown"><?php echo $countdown; ?></div>
|
||||
<div class="auth_outage_warningbar_box_message">
|
||||
<span id="auth_outage_warningbar_countdown"><?php echo $message; ?></span>
|
||||
<?php echo $outage->get_title(); ?>
|
||||
<small>
|
||||
[<?php echo html_writer::link(
|
||||
new moodle_url('/auth/outage/info.php'),
|
||||
|
||||
Reference in New Issue
Block a user