Ed Tanous | 1ccd57c | 2017-03-21 13:15:58 -0700 | [diff] [blame^] | 1 | angular.module('bmcApp').controller('versionController', [ |
| 2 | '$scope', '$resource', |
| 3 | function($scope, $resource) { |
Ed Tanous | 904063f | 2017-03-02 16:48:24 -0800 | [diff] [blame] | 4 | |
Ed Tanous | c4771fb | 2017-03-13 13:39:49 -0700 | [diff] [blame] | 5 | |
| 6 | var systeminfo = $resource("/systeminfo"); |
| 7 | systeminfo.get(function(systeminfo){ |
| 8 | $scope.host_power_on= true; |
| 9 | $scope.rmm_module_installed= true; |
| 10 | $scope.bmc_available= true; |
| 11 | $scope.bmc_build_date= new Date(2016, 0, 1, 2, 3, 4, 567); |
| 12 | $scope.bios_build_number = "D0191"; |
| 13 | $scope.bmc_build_number = "96.37"; |
| 14 | $scope.bmc_build_extended = "e04989f7"; |
| 15 | $scope.bmc_backup_build_number = "96.37"; |
| 16 | $scope.bmc_backup_build_extended = "e04989f7"; |
Ed Tanous | 904063f | 2017-03-02 16:48:24 -0800 | [diff] [blame] | 17 | }); |
| 18 | |
Ed Tanous | c4771fb | 2017-03-13 13:39:49 -0700 | [diff] [blame] | 19 | |
| 20 | |
Ed Tanous | 1ccd57c | 2017-03-21 13:15:58 -0700 | [diff] [blame^] | 21 | }]); |