diff --git a/rbmd/conf.json b/rbmd/conf.json
index 09026a0..7f9e81b 100644
--- a/rbmd/conf.json
+++ b/rbmd/conf.json
@@ -1,7 +1,6 @@
{
-"mount":"http://127.0.0.1:9076/mount",
-"api": "http://127.0.0.1:9076/v1/",
+"api": "http://10.8.0.34:9076/v1/",
"ws": "ws://php.difrex.ru/ws"
}
diff --git a/rbmd/templates/rbmd/index.html b/rbmd/templates/rbmd/index.html
index 879b3a1..9ff1615 100644
--- a/rbmd/templates/rbmd/index.html
+++ b/rbmd/templates/rbmd/index.html
@@ -1,115 +1,91 @@
{% load staticfiles %}
-
+
- RBMD
-
-
-
-
-
-
+ RBMD
+
+
+
+
-
-
+
-
-
-
- ×
+
+
+
+
Leader:
+
Nodes:
+
{{node}}
+
Metrics:
+
+{% for k,v in metrics.items %} {{k}} {{v}}
{% endfor %}
+
+
+
+
+
+
+ Node: | |
+ IPv4: | |
+ IPv6: | |
+ Updated: | |
+ Mounts: |
+ |
+
+
Resolve
+
+
+
+
-
-
-
-
-
-
Leader:
-
Nodes:
- {% for node in nodes %}
-
{{node}}
- {% endfor %}
-
Metrics:
- {{ metrics }}
-
-
-
-
-
-
Status...
-
-
-
-
-{% if node %}
-
-{% endif %}
-
-
- Node: | |
- IPv4: | |
- IPv6: | |
- Updated: | |
-
- Mounts: |
- |
-
-
-
-
-
-
-{% if node %}
+
+
+
+ console.log('{{status|escapejs}}')
+ var res = '{{status|escapejs}}';
+ message = "" + res["state"] + "
"+ res["message"] +"
";
+ $("#rspContainer").css("display", "block");
+ $("#rsp").html(message)
+ if (res["state"] == 'OK'){$("#rspContainer").css("background-color", "#4CAF50" );}
+ else {$("#rspContainer").css("background-color", "#f44336" )}
+
-{% endif %}
-
-
-
+
+