Added tags for Github builds (UI Fixes).

This commit is contained in:
Dmitry Khomutov 2017-04-22 21:48:54 +07:00
commit bf067e4fda
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
4 changed files with 39 additions and 23 deletions

View file

@ -100,17 +100,23 @@ use PHPCensor\Model\Build;
<?php print $build->getProject()->getTitle(); ?>
</a>
<span><?php print $environment; ?></span>
-
&mdash;
<a href="<?php print APP_URL; ?>build/view/<?php print $build->getId(); ?>">
Build #<?php print $build->getId(); ?>
</a>
-
&mdash;
<?php print $label; ?>
</h3>
<div class="timeline-body">
<a href="<?php echo $build->getBranchLink();?>"><?php echo $build->getBranch(); ?></a>
<?php print $branches ? ' + '.implode(', ', $branches) : ''; ?> -
<a href="<?= $build->getBranchLink();?>"><i class="fa fa-code-fork"></i> <?php echo $build->getBranch(); ?></a>
<?= $branches ? ' + '.implode(', ', $branches) : ''; ?>
<?php if ($tag = $build->getTag()): ?>
(<a href="<?= $build->getTagLink(); ?>" target="_blank">
<i class="fa fa-tag"></i> <?= $tag; ?>
</a>)
<?php endif; ?>
&mdash;
<?php
if ($build->getCommitId() !== 'Manual') {
print sprintf(
@ -123,7 +129,8 @@ use PHPCensor\Model\Build;
print Lang::get('manual_build');
}
?>
- <?php print $build->getCommitMessage(); ?>
&mdash;
<?php print $build->getCommitMessage(); ?>
</div>
</div>
</li>