Display short commit link and email address
This commit is contained in:
parent
06aa165160
commit
92a5078225
1 changed files with 8 additions and 5 deletions
|
|
@ -50,11 +50,14 @@ switch($build->getStatus())
|
|||
<td class="hidden-md hidden-sm hidden-xs">
|
||||
<?php
|
||||
if ($build->getCommitId() !== 'Manual') {
|
||||
print '<a href="' . $build->getCommitLink() . '" target="_blank">';
|
||||
}
|
||||
print $build->getCommitId();
|
||||
if ($build->getCommitId() !== 'Manual') {
|
||||
print '</a>';
|
||||
print sprintf(
|
||||
'<a href="%s">%s (%s)</a>',
|
||||
$build->getCommitLink(),
|
||||
substr($build->getCommitId(), 0, 7),
|
||||
$build->getCommitterEmail()
|
||||
);
|
||||
} else {
|
||||
print 'Manual Build';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue