Skip to content

Show status page in two columns #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update status.html
  • Loading branch information
britzl committed Apr 12, 2025
commit b6d6283038c9975e3b6f645cf84a14a36ab938dd
12 changes: 7 additions & 5 deletions status.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: hero_and_text
title: Build server status page
description: Build server status page
description: The Defold build servers are provided as a free service to all developers. Refer to this page to check their availability.
nav: floating
heatmap: false
background: /images/hero/defold-top-bg-transparent-2.png
Expand Down Expand Up @@ -63,19 +63,21 @@ <h3 id="statusTitle" class="panel-title">
function handleResponse(response, rootId) {
var totalFullyOperatedPlatforms = 0;
var totalUnreachablePlatforms = 0;
var parent_grid = document.getElementById(rootId).querySelector("#grid");
var parentGrid = document.getElementById(rootId).querySelector("#grid");
var platformCount = 0;
for (var key in response) {
addBlock(key, response[key], parent_grid);
addBlock(key, response[key], parentGrid);
if (response[key] == OperationalStatus) {
totalFullyOperatedPlatforms++;
} else if (response[key] == UnreachableStatus) {
totalUnreachablePlatforms++;
}
platformCount++;
}
if (totalUnreachablePlatforms == response.length) {
if (totalUnreachablePlatforms == platformCount) {
document.getElementById(rootId).querySelector("#statusPanel").classList.add("panel-danger");
document.getElementById(rootId).querySelector("#statusTitle").textContent = UnreachableStatus;
} else if (totalFullyOperatedPlatforms == response.length) {
} else if (totalFullyOperatedPlatforms == platformCount) {
document.getElementById(rootId).querySelector("#statusPanel").classList.add("panel-success");
document.getElementById(rootId).querySelector("#statusTitle").textContent = OperationalStatus;
} else {
Expand Down