php-censor/src/PHPCensor/View/Build/header-row.phtml

21 lines
1,009 B
PHTML
Raw Normal View History

2016-07-19 20:28:11 +02:00
<?php use PHPCensor\Helper\Lang; ?>
<li>
<a href="<?php print PHPCI_URL; ?>build/view/<?php print $build->getId(); ?>">
<?php if ($build->getCommitterEmail()): ?>
<div class="pull-left">
<img src="https://www.gravatar.com/avatar/<?php print md5($build->getCommitterEmail()); ?>?d=mm&s=40" class="img-circle" alt="">
</div>
<?php endif; ?>
<h4>
<?php print $build->getProject()->getTitle(); ?>
2016-07-19 20:28:11 +02:00
<?php if ($build->getStatus() == \PHPCensor\Model\Build::STATUS_NEW): ?>
2014-12-04 12:42:21 +01:00
<small class="pull-right"><?php Lang::out('created_x', $build->getCreated()->format('H:i')); ?></small>
2016-07-19 20:28:11 +02:00
<?php elseif ($build->getStatus() == \PHPCensor\Model\Build::STATUS_RUNNING): ?>
2014-12-04 12:42:21 +01:00
<small class="pull-right"><?php Lang::out('started_x', $build->getStarted()->format('H:i')); ?></small>
<?php endif; ?>
</h4>
2014-12-04 12:42:21 +01:00
<p><?php Lang::out('branch_x', $build->getBranch()); ?></p>
</a>
</li>