This commit is contained in:
@@ -21,26 +21,15 @@ app.ops = (function() {
|
||||
//Generate list item
|
||||
//
|
||||
checkService = function(service) {
|
||||
// var okClassFragment = okStatus
|
||||
// ? "mdi-check-circle text-success"
|
||||
// : "mdi-alert text-danger";
|
||||
|
||||
// return (
|
||||
// '<h4><i class="mdi mdi-36px ' +
|
||||
// okClassFragment +
|
||||
// '"></i> ' +
|
||||
// label +
|
||||
// "</h4>"
|
||||
// );
|
||||
|
||||
|
||||
app.api.get("ops/status/" + service, function(res) {
|
||||
if (res.error) {
|
||||
$.gevent.publish("app-show-error", res.msg);
|
||||
} else {
|
||||
if (res.ServiceCheckError) {
|
||||
if (res.serviceCheckError) {
|
||||
var errorText = $("#rf-ops-error").text();
|
||||
errorText += "\r\n";
|
||||
errorText += res.ServiceCheckError;
|
||||
errorText += res.serviceCheckError;
|
||||
$("#rf-ops-error").text(errorText);
|
||||
}
|
||||
|
||||
@@ -51,10 +40,9 @@ app.ops = (function() {
|
||||
} else {
|
||||
serviceElement.addClass("mdi-alert text-danger");
|
||||
}
|
||||
//remove ? class and warning class
|
||||
//add appropriate icon and text color class
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
//-------------------- END UTILITY METHODS -------------------
|
||||
@@ -81,17 +69,20 @@ app.ops = (function() {
|
||||
}
|
||||
$container.html(Handlebars.templates["app.ops"]({}));
|
||||
$("#rf-ops-error").text("");
|
||||
// $("#rf-ops-status").html("<h4>Checking...</h4>");
|
||||
|
||||
//Context menu
|
||||
app.nav.contextClear();
|
||||
|
||||
checkService("MailMirror");
|
||||
checkService("AyaNovaSite");
|
||||
checkService("APISite");
|
||||
checkService("Backup");
|
||||
checkService("ContactForm");
|
||||
checkService("RequestForm");
|
||||
checkService("Backup");
|
||||
checkService("RequestLiteForm");
|
||||
checkService("Forum");
|
||||
checkService("Subversion");
|
||||
checkService("DevOps");
|
||||
checkService("APISite");
|
||||
};
|
||||
|
||||
//PUBLIC METHODS
|
||||
|
||||
Reference in New Issue
Block a user