This commit is contained in:
Dmitry Khomutov 2017-01-15 20:09:45 +07:00
parent d0a46ee8ab
commit 1ce0b4880e
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
2 changed files with 9 additions and 6 deletions

View file

@ -16,7 +16,7 @@ var Build = Class.extend({
self.buildData = buildData;
self.fileLinkTemplate = linkTemplate;
self.registerQuery('build-updated', 10);
self.registerQuery('build-updated', 5);
$(window).on('build-updated', function(data) {
@ -29,9 +29,9 @@ var Build = Class.extend({
}
if (self.buildData) {
$('.build-duration').data('duration', self.buildData.duration ? self.buildData.duration : '');
$('.build-started').data('date', self.buildData.started ? self.buildData.started : '');
$('.build-finished').data('date', self.buildData.finished ? self.buildData.finished : '');
$('.build-duration').html(self.buildData.duration ? (self.buildData.duration + ' ' + Lang.get('seconds')) : ('0 ' + Lang.get('seconds')));
$('.build-started').html(self.buildData.started ? self.buildData.started : '');
$('.build-finished').html(self.buildData.finished ? self.buildData.finished : '');
$('#log pre').html(self.buildData.log);
$('.errors-table tbody').html(self.buildData.error_html);

View file

@ -10,12 +10,15 @@
namespace Tests\PHPCensor\Helper;
use DateTime;
use PHPCensor\Helper\Lang;
use Tests\PHPCensor\LocalizationTestCase;
class LangTest extends LocalizationTestCase
{
public function testSuccess()
{
$this->assertTrue(true);
}
/**
* @return array
*/