From: John Spray Date: Thu, 22 Jun 2017 00:34:27 +0000 (-0400) Subject: mgr/dashboard: update health display X-Git-Tag: v12.1.1~25^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16043%2Fhead;p=ceph.git mgr/dashboard: update health display This takes account of the new health format, also expands and visually cleans up the frontpage where we put the health information. Dark backgrounds make it much easier to use red/amber/green colours to grab attention. Signed-off-by: John Spray --- diff --git a/src/pybind/mgr/dashboard/base.html b/src/pybind/mgr/dashboard/base.html index 18874fb565f..efe09260e30 100644 --- a/src/pybind/mgr/dashboard/base.html +++ b/src/pybind/mgr/dashboard/base.html @@ -111,8 +111,11 @@ return format_number(n, 1024, ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB']); }; - - + /* This is useful if you need to display some alternative text + * when a collection is empty using rv-hide */ + rivets.formatters.length = function(val) { + return val.length; + } rivets.bind($("#health"), toplevel_data); rivets.bind($("section.sidebar"), toplevel_data); @@ -122,22 +125,102 @@ + + + - +
- +
@@ -165,17 +248,19 @@
-