Added tags for Github builds (UI Fixes +++).

This commit is contained in:
Dmitry Khomutov 2017-04-22 21:56:51 +07:00
parent bf067e4fda
commit 9d269a4cca
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
4 changed files with 12 additions and 12 deletions

View file

@ -27,10 +27,10 @@
<a target="_blank" href="<?= $build->getBranchLink(); ?>">
<i class="fa fa-code-fork"></i> <?= $build->getBranch(); ?>
</a>
<?php if ($tag = $build->getTag()): ?>
(<a target="_blank" href="<?= $build->getTagLink(); ?>">
<?php if ($tag = $build->getTag()): ?> /
<a target="_blank" href="<?= $build->getTagLink(); ?>">
<i class="fa fa-tag"></i> <?= $tag; ?>
</a>)
</a>
<?php endif; ?>
</td>
</tr>

View file

@ -80,10 +80,10 @@ use PHPCensor\Model\Build;
<div class="timeline-body">
<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">
<?php if ($tag = $build->getTag()): ?> /
<a href="<?= $build->getTagLink(); ?>" target="_blank">
<i class="fa fa-tag"></i> <?= $tag; ?>
</a>)
</a>
<?php endif; ?>
&mdash;
<?php

View file

@ -111,10 +111,10 @@ use PHPCensor\Model\Build;
<div class="timeline-body">
<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">
<?php if ($tag = $build->getTag()): ?> /
<a href="<?= $build->getTagLink(); ?>" target="_blank">
<i class="fa fa-tag"></i> <?= $tag; ?>
</a>)
</a>
<?php endif; ?>
&mdash;
<?php

View file

@ -62,10 +62,10 @@ $branches = $build->getExtra('branches');
<i class="fa fa-code-fork"></i> <?= $build->getBranch(); ?>
</a>
<?= $branches ? ' + '.implode(', ', $branches) : ''; ?>
<?php if ($tag = $build->getTag()): ?>
(<a href="<?= $build->getTagLink(); ?>" target="_blank">
<?php if ($tag = $build->getTag()): ?> /
<a href="<?= $build->getTagLink(); ?>" target="_blank">
<i class="fa fa-tag"></i> <?= $tag; ?>
</a>)
</a>
<?php endif; ?>
</td>
<td>