"host-name" and "description" attributes must be defined');
+ }
+
+ serviceConfig.hostName = '';
+ serviceConfig.hostName = attrs.hostName;
+
+ serviceConfig.description = '';
+ serviceConfig.description = attrs.description;
+
+ $http.get(template, { cache: true })
+ .success(function (data) {
+ var elem = $compile(data)(scope);
+ element.append(elem);
+ });
+ };
+ }
+ };
+ }]);
diff --git a/app/components/table/cell_service_check/cell_service_check.html b/app/components/table/cell_service_check/cell_service_check.html
index 5ce7545..554b086 100644
--- a/app/components/table/cell_service_check/cell_service_check.html
+++ b/app/components/table/cell_service_check/cell_service_check.html
@@ -1,7 +1,7 @@
-
- {{entry.description}}
+ {{entry.description}}
- {{entry.plugin_output}}
diff --git a/app/templates/service/service.js b/app/templates/service/service.js
index a7b4f88..c89a510 100644
--- a/app/templates/service/service.js
+++ b/app/templates/service/service.js
@@ -1,13 +1,6 @@
-'use strict';
+"use strict";
-angular.module('adagios.view.service', ['adagios.live'])
-
- .controller('ServiceViewCtrl', ['$scope', '$routeParams',
- function ($scope, $routeParams) {
- if (!!$routeParams.host_name && !!$routeParams.description) {
- $scope.hostName = $routeParams.host_name;
- $scope.description = $routeParams.description;
- } else {
- throw new Error("ERROR :'host_name' and 'description' GET parameters must be set");
- }
- }]);
+angular.module("adagios.view.service", [ "adagios.live" ]).controller("ServiceViewCtrl", [ "$scope", "$routeParams", function($scope, $routeParams) {
+ if (!$routeParams.host_name || !$routeParams.description) throw new Error("ERROR :'host_name' and 'description' GET parameters must be set");
+ $scope.hostName = $routeParams.host_name, $scope.description = $routeParams.description;
+} ]);
\ No newline at end of file
|