1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

make a self-signed certificate on a non-primary domain a warning rather than an error, fixes #95

This commit is contained in:
Joshua Tauberer
2014-10-07 20:41:07 +00:00
parent 8566b78202
commit 0441a2e2e3
3 changed files with 18 additions and 6 deletions

View File

@@ -10,11 +10,14 @@
border-top: none;
padding-top: 0;
}
#system-checks .error td {
#system-checks .status-error td {
color: #733;
}
#system-checks .ok td {
color: #030;
#system-checks .status-warning td {
color: #770;
}
#system-checks .status-ok td {
color: #040;
}
#system-checks div.extra {
display: none;
@@ -52,9 +55,13 @@ function show_system_status() {
for (var i = 0; i < r.length; i++) {
var n = $("<tr><td class='status'/><td class='message'><p style='margin: 0'/><div class='extra'/><a class='showhide' href='#'/></tr>");
if (i == 0) n.addClass('first')
n.addClass(r[i].type)
if (r[i].type == "heading")
n.addClass(r[i].type)
else
n.addClass("status-" + r[i].type)
if (r[i].type == "ok") n.find('td.status').text("✓")
if (r[i].type == "error") n.find('td.status').text("✖")
if (r[i].type == "warning") n.find('td.status').text("?")
n.find('td.message p').text(r[i].text)
$('#system-checks tbody').append(n);
@@ -76,4 +83,4 @@ function show_system_status() {
}
})
}
</script>
</script>