var timePlugin = PHPCI.UiPlugin.extend({ id: 'build-time', css: 'col-lg-12 col-md-12 col-sm-12 col-xs-12', title: null, box: true, init: function(){ this._super(); }, render: function() { return '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '
Build CreatedBuild StartedBuild Finished
' + PHPCI.buildData.created + '' + PHPCI.buildData.started + '' + PHPCI.buildData.finished + '
'; }, onUpdate: function(e) { var build = e.queryData; $('#created').text(build.created); $('#started').text(build.started); $('#finished').text(build.finished); } }); PHPCI.registerPlugin(new timePlugin());