Soften the language on the members are in/open banner (#68)

This commit is contained in:
Paul
2024-07-03 21:00:52 +01:00
committed by GitHub
parent b254a13edd
commit c008836533
2 changed files with 3 additions and 3 deletions

View File

@@ -10,14 +10,14 @@ $(document).ready(function () {
// Hackspace status
if ($('span#hackspace-status').length) {
if (data.state.open) {
message = '<b>Open</b>'
message = 'are'
if ('message' in data.state) {
message = message + ': ' + data.state.message;
}
$('span#hackspace-status').html(message);
$('div#hackspace-open').addClass('is-success');
} else {
$('span#hackspace-status').html('<b>Closed</b>');
$('span#hackspace-status').html('aren\'t');
}
$('div#hackspace-open').fadeIn('slow');
}