mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
97 lines
2.8 KiB
Scheme
97 lines
2.8 KiB
Scheme
<html>
|
|
<head>
|
|
<title>Site health: $Status</title>
|
|
<style>
|
|
* {
|
|
font-family: Helvetica, Arial;
|
|
font-size: 12px;
|
|
}
|
|
.subtext {
|
|
margin-top: -10px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 30px;
|
|
margin-bottom: 3px;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 16px;
|
|
margin: 2px 0 10px 8px;
|
|
}
|
|
|
|
p {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
table th {
|
|
color: white;
|
|
background-color: #777;
|
|
/*border: 1px #aaa solid;*/
|
|
padding: 10px;
|
|
text-align: left;
|
|
}
|
|
table td {
|
|
background-color: #eee;
|
|
/*border: 1px #ddd solid;*/
|
|
padding: 5px 10px;
|
|
}
|
|
table tr:nth-child(odd) td {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
.OK {
|
|
color: green;
|
|
}
|
|
.WARNING {
|
|
color: orange;
|
|
font-weight: bold;
|
|
}
|
|
.ERROR {
|
|
color: red;
|
|
font-weight: bold;
|
|
}
|
|
.extra-links a {
|
|
display: block;
|
|
margin: 1rem 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
|
|
<body>
|
|
<h1 class="$Status">$Title: $Status</h1>
|
|
<h2 class="website">Site: $URL</h2>
|
|
|
|
<div class="extra-links">
|
|
<a href="/dev/tasks/DataIntegrityTest/?do=obsoletefields">TEST DB Integrity</a>
|
|
<a href="/dev/tasks/testemail">Test SilverStripe mailer</a>
|
|
</div>
|
|
|
|
<% if $IncludeDetails %>
|
|
<table>
|
|
<tr><th>Check</th> <th>Status</th> <th>Message</th></tr>
|
|
<% loop $Details %>
|
|
<tr><td>$Check</td> <td class="$Status">$Status</td> <td>$Message.XML</td></tr>
|
|
<% end_loop %>
|
|
</table>
|
|
<% end_if %>
|
|
|
|
<% if $ShouldPass %>
|
|
<p>Site is available</p>
|
|
<p class="subtext">(you may check for the presence of the text 'Site is available' rather than an HTTP $ErrorCode error on this page, if you prefer.<% if not $IncludeDetails %> Full details are available for logged in users at <a href="{$AbsoluteBaseURL}dev/check/">dev/check</a><% end_if %>)</p>
|
|
<% else %>
|
|
<% if $Name == "check" %>
|
|
<p><b>A subsystem of the site is unavailable, but the site remains operational</b></p>
|
|
<% else %>
|
|
<p><b>Site is not available</b></p>
|
|
<% end_if %>
|
|
<% end_if %>
|
|
</body>
|
|
</html>
|