From 1fc83f4b1d0c2eb7cf18ecf049335571eb320575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Jim=C3=A9nez?= Date: Mon, 18 Jun 2018 10:00:10 +0200 Subject: [PATCH] Refactored nodes list and many other Monitoring files --- .../templates/manager/monitoring/config.html | 48 ---------------- .../manager/monitoring/configuration.html | 55 +++++++++++++++++++ ...monitoring-disabled.html => disabled.html} | 0 ...ain-timelions.html => main-timelions.html} | 0 .../{monitoring-main.html => main.html} | 0 .../manager/monitoring/monitoring.jade | 20 ++----- .../{node-detail.html => nodes-detail.html} | 0 .../{node-list.html => nodes-list.html} | 40 +++++++++++++- .../ruleset/decoders/decoders-detail.html | 2 +- .../ruleset/decoders/decoders-list.html | 2 +- .../manager/ruleset/rules/rules-detail.html | 2 +- .../manager/ruleset/rules/rules-list.html | 2 +- 12 files changed, 104 insertions(+), 67 deletions(-) delete mode 100644 public/templates/manager/monitoring/config.html create mode 100644 public/templates/manager/monitoring/configuration.html rename public/templates/manager/monitoring/{monitoring-disabled.html => disabled.html} (100%) rename public/templates/manager/monitoring/{monitoring-main-timelions.html => main-timelions.html} (100%) rename public/templates/manager/monitoring/{monitoring-main.html => main.html} (100%) rename public/templates/manager/monitoring/{node-detail.html => nodes-detail.html} (100%) rename public/templates/manager/monitoring/{node-list.html => nodes-list.html} (54%) diff --git a/public/templates/manager/monitoring/config.html b/public/templates/manager/monitoring/config.html deleted file mode 100644 index 63e00eeda..000000000 --- a/public/templates/manager/monitoring/config.html +++ /dev/null @@ -1,48 +0,0 @@ -
- - - Top 5 nodes - - - No results for selected time interval - - - - - Overview - -
- Disabled - {{configuration.disabled}} -
-
- Hidden - {{configuration.hidden}} -
-
- Name - {{configuration.name}} -
-
- Node name - {{configuration.node_name}} -
-
- Node type - {{configuration.node_type}} -
-
- Bind address - {{configuration.bind_addr}} -
-
- IP - {{configuration.nodes[0] || 'Unknown'}} -
-
- Port - {{configuration.port}} -
-
-
-
\ No newline at end of file diff --git a/public/templates/manager/monitoring/configuration.html b/public/templates/manager/monitoring/configuration.html new file mode 100644 index 000000000..268e68086 --- /dev/null +++ b/public/templates/manager/monitoring/configuration.html @@ -0,0 +1,55 @@ + +
+ + + + + Top 5 nodes + + + There are no results for selected time range. Try another one. + + + + + + + Cluster configuration + + +
+ Disabled + {{configuration.disabled}} +
+
+ Hidden + {{configuration.hidden}} +
+
+ Name + {{configuration.name}} +
+
+ Node name + {{configuration.node_name}} +
+
+ Node type + {{configuration.node_type}} +
+
+ Bind address + {{configuration.bind_addr}} +
+
+ IP + {{configuration.nodes[0] || 'Unknown'}} +
+
+ Port + {{configuration.port}} +
+
+
+
+ diff --git a/public/templates/manager/monitoring/monitoring-disabled.html b/public/templates/manager/monitoring/disabled.html similarity index 100% rename from public/templates/manager/monitoring/monitoring-disabled.html rename to public/templates/manager/monitoring/disabled.html diff --git a/public/templates/manager/monitoring/monitoring-main-timelions.html b/public/templates/manager/monitoring/main-timelions.html similarity index 100% rename from public/templates/manager/monitoring/monitoring-main-timelions.html rename to public/templates/manager/monitoring/main-timelions.html diff --git a/public/templates/manager/monitoring/monitoring-main.html b/public/templates/manager/monitoring/main.html similarity index 100% rename from public/templates/manager/monitoring/monitoring-main.html rename to public/templates/manager/monitoring/main.html diff --git a/public/templates/manager/monitoring/monitoring.jade b/public/templates/manager/monitoring/monitoring.jade index e2ec6aa85..33d6d4b0a 100644 --- a/public/templates/manager/monitoring/monitoring.jade +++ b/public/templates/manager/monitoring/monitoring.jade @@ -1,16 +1,8 @@ -include ./monitoring-disabled.html +include ./disabled.html include ./monitoring.head -include ./monitoring-main.html -include ./monitoring-main-timelions.html - - -include ./config.html - - -include ./node-list.html - - -include ./node-detail.html - - +include ./main.html +include ./main-timelions.html +include ./configuration.html +include ./nodes-list.html +include ./nodes-detail.html include ../../footer.foot diff --git a/public/templates/manager/monitoring/node-detail.html b/public/templates/manager/monitoring/nodes-detail.html similarity index 100% rename from public/templates/manager/monitoring/node-detail.html rename to public/templates/manager/monitoring/nodes-detail.html diff --git a/public/templates/manager/monitoring/node-list.html b/public/templates/manager/monitoring/nodes-list.html similarity index 54% rename from public/templates/manager/monitoring/node-list.html rename to public/templates/manager/monitoring/nodes-list.html index 00497f046..8ffe5e10e 100644 --- a/public/templates/manager/monitoring/node-list.html +++ b/public/templates/manager/monitoring/nodes-list.html @@ -1,3 +1,41 @@ +
+ + + + + + + + + + + +
+ + + + + + + + + + + diff --git a/public/templates/manager/ruleset/decoders/decoders-detail.html b/public/templates/manager/ruleset/decoders/decoders-detail.html index 39334950a..0c98a94dc 100644 --- a/public/templates/manager/ruleset/decoders/decoders-detail.html +++ b/public/templates/manager/ruleset/decoders/decoders-detail.html @@ -160,7 +160,7 @@ -
+

Related decoders

+
-
+

Related rules

+