Fixed build duration localization in timeline

This commit is contained in:
Dmitry Khomutov 2017-04-22 22:02:27 +07:00
commit 36243ca9cb
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
3 changed files with 10 additions and 10 deletions

View file

@ -57,11 +57,11 @@ use PHPCensor\Model\Build;
<i class="fa fa-<?php print $build->getProject()->getIcon(); ?> bg-<?php print $color; ?>"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i>
<?php
echo $updated->format('H:i:s');
if ($build->getStatus() != Build::STATUS_PENDING) {
echo ' (' . $build->getPrettyDuration() . ')';
}
<?php
echo $updated->format('H:i:s');
if ($build->getStatus() != Build::STATUS_PENDING) {
echo ' &mdash; ' . $build->getDuration(); ?> <?= Lang::get('seconds');
}
?>
</span>
<h3 class="timeline-header">

View file

@ -89,10 +89,10 @@ use PHPCensor\Model\Build;
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i>
<?php
echo $updated->format('H:i:s');
if ($build->getStatus() != Build::STATUS_PENDING) {
echo ' (' . $build->getPrettyDuration() . ')';
}
echo $updated->format('H:i:s');
if ($build->getStatus() != Build::STATUS_PENDING) {
echo ' &mdash; ' . $build->getDuration(); ?> <?= Lang::get('seconds');
}
?>
</span>
<h3 class="timeline-header">

View file

@ -75,7 +75,7 @@ $branches = $build->getExtra('branches');
?>
</td>
<td>
<?php print $build->getDuration(); ?> <?= Lang::get('seconds'); ?>
<?= $build->getDuration(); ?> <?= Lang::get('seconds'); ?>
</td>
<td>
<div class="btn-group btn-group-right">