Issue #28 - Inverted warning bar texts -- focus on countdown.

This commit is contained in:
Daniel Thee Roperto
2016-09-12 18:32:16 +10:00
parent b8c08192d1
commit 46a503e383
3 changed files with 5 additions and 5 deletions

View File

@@ -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]

View File

@@ -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;

View File

@@ -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'),