Sha256: 01f14b20d64edce6f7f28e79b922db080a7fe0d3cda6eac25a3278b5a999130b

Contents?: true

Size: 730 Bytes

Versions: 2

Compression:

Stored size: 730 Bytes

Contents

(function() {

'use strict';

angular.module('herald.report', [
  'ui.router',
  'herald.page',
  'herald.directives'
])

.controller('ReportController', ['$http', '$stateParams', 'Page', function($http, $stateParams, Page) {
  var ctrl = this;
  Page.title('Puppet report');
  ctrl.report = null;
  ctrl.nav = {
    node: null,
    report: null
  };
  this.reportId = $stateParams.reportId;

  function setReport(reportData) {
    ctrl.report = reportData;
    ctrl.nav.node = ctrl.report.host;
    ctrl.nav.report = ctrl.report.configuration_version;
  }

  $http.get('/api/v1/reports/' + this.reportId).success(function(data) {
    setReport(data);
    Page.title('Puppet report', data.configuration_version);
  });
}]);

})();

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-herald-0.8.1 lib/puppet-herald/public/report/report.js
puppet-herald-0.8.0 lib/puppet-herald/public/report/report.js