diff --git a/app/components/drupal/drupal.html b/app/components/drupal/drupal.html index 115e48d..17b952e 100644 --- a/app/components/drupal/drupal.html +++ b/app/components/drupal/drupal.html @@ -47,17 +47,9 @@ warning="70" critical="40"> - diff --git a/app/components/drupal/drupal_tile/drupal_tile.html b/app/components/drupal/drupal_tile/drupal_tile.html index 4a7d0b4..9f0f766 100644 --- a/app/components/drupal/drupal_tile/drupal_tile.html +++ b/app/components/drupal/drupal_tile/drupal_tile.html @@ -1,4 +1,4 @@ -
+

{{title}} {{finalScore}}

diff --git a/app/components/drupal/drupal_tile/drupal_tile.js b/app/components/drupal/drupal_tile/drupal_tile.js index 07bec7a..8159119 100644 --- a/app/components/drupal/drupal_tile/drupal_tile.js +++ b/app/components/drupal/drupal_tile/drupal_tile.js @@ -34,6 +34,12 @@ angular.module('bansho.drupal.tile', []) $scope.finalScoreClass = 'tile__score-warning'; } + if ($scope.plugins === 'drupal_views') { + if (response[0].plugin_output.indexOf('Views is not enabled.') !== -1) { + $scope.hide = true; + } + } + // Split data into (metric, score_class, action) tuples for (var i = 0; i < data.length; i+=3) { var tuple = [];