2015-05-07 21:55:40 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
define([
|
2015-05-09 21:36:17 +00:00
|
|
|
'react', 'app/actions/build', 'templates/app/components/builds/item',
|
|
|
|
'app/components/common/index'
|
|
|
|
], function(React, BuildActions, template, CommonComponents) {
|
|
|
|
template = template.locals({
|
|
|
|
DateTime: CommonComponents.DateTime
|
|
|
|
});
|
|
|
|
console.log(CommonComponents.DateTime);
|
|
|
|
|
2015-05-07 21:55:40 +00:00
|
|
|
var Component = React.createClass({
|
|
|
|
onBuildSelect: function(buildId) {
|
|
|
|
console.log('on build select');
|
|
|
|
BuildActions.readConsoleOutput(buildId);
|
|
|
|
},
|
2015-05-09 21:36:17 +00:00
|
|
|
render: template
|
2015-05-07 21:55:40 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return Component;
|
|
|
|
});
|