From de9e6a7ef0476f62ea4e1116d057e2f79089c185 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 10 Jul 2017 18:06:01 -0400 Subject: [PATCH] mgr/dashboard: rbd pool image view should use dynamic data table Signed-off-by: Jason Dillaman --- src/pybind/mgr/dashboard/base.html | 3 +++ src/pybind/mgr/dashboard/rbd_pool.html | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/base.html b/src/pybind/mgr/dashboard/base.html index 237c0c1ea0e81..dc97f48d111f5 100644 --- a/src/pybind/mgr/dashboard/base.html +++ b/src/pybind/mgr/dashboard/base.html @@ -18,6 +18,8 @@ href="/static/AdminLTE-2.3.7/dist/css/AdminLTE.min.css"> + @@ -27,6 +29,7 @@ + diff --git a/src/pybind/mgr/dashboard/rbd_pool.html b/src/pybind/mgr/dashboard/rbd_pool.html index 0838c6b55f16b..4aaef0242ab4c 100644 --- a/src/pybind/mgr/dashboard/rbd_pool.html +++ b/src/pybind/mgr/dashboard/rbd_pool.html @@ -10,14 +10,24 @@ var refresh = function() { $.get("/rbd_pool_data/" + content_data.pool_name + "/", function(data) { content_data.images = data; - setTimeout(refresh, 5000); + setTimeout(refresh, 10000); }); }; console.log(content_data); rivets.bind($("div#content"), content_data); - setTimeout(refresh, 5000); + setTimeout(refresh, 10000); + + $('#images').DataTable({ + 'paging' : true, + 'pageLength' : 15, + 'lengthChange': false, + 'searching' : true, + 'ordering' : true, + 'info' : false, + 'autoWidth' : false + }); }); @@ -34,7 +44,7 @@

Images

- +
-- 2.39.5
Name