From: Jason Dillaman Date: Mon, 10 Jul 2017 22:06:01 +0000 (-0400) Subject: mgr/dashboard: rbd pool image view should use dynamic data table X-Git-Tag: v12.1.2~151^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=de9e6a7ef0476f62ea4e1116d057e2f79089c185;p=ceph.git mgr/dashboard: rbd pool image view should use dynamic data table Signed-off-by: Jason Dillaman --- diff --git a/src/pybind/mgr/dashboard/base.html b/src/pybind/mgr/dashboard/base.html index 237c0c1ea0e8..dc97f48d111f 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 0838c6b55f16..4aaef0242ab4 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

- +
Name