From 95e639e18cbdb80acb4a1e01e08eb7f308395968 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Fri, 12 Dec 2014 14:26:21 -0800 Subject: [PATCH] backend_status icon --- .../core/xoslib/static/js/xoslib/xosHelper.js | 3 +++ planetstack/core/xoslib/templates/xosAdmin.html | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js index 2a1e94f..d450ea9 100644 --- a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js +++ b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js @@ -758,6 +758,9 @@ XOSDataTableView = Marionette.View.extend( { var collectionName = view.collection.collectionName; mRender = function(x,y,z) { return '' + x + ''; }; } + if (fieldName=="backend_status") { + mRender = function(x,y,z) { return xosBackendStatusIconTemplate(z); }; + } thisColumn = {sTitle: fieldNameToHumanReadable(fieldName), mData: fieldName, mRender: mRender, mSearchText: mSearchText}; view.columnsByIndex.push( thisColumn ); view.columnsByFieldName[fieldName] = thisColumn; diff --git a/planetstack/core/xoslib/templates/xosAdmin.html b/planetstack/core/xoslib/templates/xosAdmin.html index 9a0e0f5..8b5c613 100644 --- a/planetstack/core/xoslib/templates/xosAdmin.html +++ b/planetstack/core/xoslib/templates/xosAdmin.html @@ -83,6 +83,18 @@ + + -- 2.43.0