2013-05-10 13:28:43 +02:00
|
|
|
<div id="title">
|
2014-02-25 18:00:05 +01:00
|
|
|
<h1 style="display: inline-block"><?php print $build->getProject()->getTitle(); ?> - Build #<?php print $build->getId(); ?></h1>
|
2014-02-25 17:43:06 +01:00
|
|
|
|
|
|
|
<div id="build-info">
|
|
|
|
<strong>Branch: </strong> <?php print $build->getBranch(); ?><br>
|
2014-02-26 16:33:11 +01:00
|
|
|
<strong>Committer: </strong> <?php print $build->getCommitterEmail(); ?><br>
|
2014-02-25 17:43:06 +01:00
|
|
|
<strong>Commit ID: </strong> <?php print $build->getCommitId() == 'Manual' ? 'HEAD' : $build->getCommitId(); ?><br>
|
|
|
|
<strong>Commit Message: </strong> <?php print $build->getCommitMessage(); ?>
|
|
|
|
</div>
|
2013-05-10 13:28:43 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2013-08-01 12:55:10 +02:00
|
|
|
<div class="col-lg-3">
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
2014-01-28 22:27:39 +01:00
|
|
|
<li><a href="<?php echo PHPCI_URL ?>"><i class="icon-home"></i> Dashboard</a></li>
|
|
|
|
<li><a href="<?php echo PHPCI_URL ?>project/view/<?php print $build->getProject()->getId(); ?>"><i class="icon-folder-open"></i> <?php print htmlspecialchars($build->getProject()->getTitle()); ?></a></li>
|
2013-08-01 12:55:10 +02:00
|
|
|
</ul>
|
|
|
|
<h5>Options</h5>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
2014-01-28 22:27:39 +01:00
|
|
|
<li><a href="<?php echo PHPCI_URL ?>build/rebuild/<?php print $build->getId(); ?>"><i class="icon-cog"></i> Rebuild</a></li>
|
2013-05-10 17:25:51 +02:00
|
|
|
<?php if($this->User()->getIsAdmin()): ?>
|
2014-02-26 12:50:01 +01:00
|
|
|
<li><a href="<?php echo PHPCI_URL ?>build/delete/<?php print $build->getId(); ?>" id="delete-build"><i class="icon-trash"></i> Delete Build</a></li>
|
2013-05-10 17:25:51 +02:00
|
|
|
<?php endif; ?>
|
2013-05-10 13:28:43 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2013-10-08 08:21:46 +02:00
|
|
|
|
2013-08-01 12:55:10 +02:00
|
|
|
<div class="col-lg-9">
|
2013-05-10 13:28:43 +02:00
|
|
|
<div id="status"></div>
|
2013-10-08 08:21:46 +02:00
|
|
|
<div id="plugins"></div>
|
|
|
|
</div>
|
2013-05-10 13:28:43 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
2013-10-08 08:21:46 +02:00
|
|
|
var PHPCI = new PHPCIObject(<?php print $build->getId() ?>);
|
|
|
|
PHPCI.buildData = <?php print $data; ?>;
|
|
|
|
</script>
|
2013-05-10 13:28:43 +02:00
|
|
|
|
2013-10-08 08:21:46 +02:00
|
|
|
<?php
|
|
|
|
foreach ($plugins as $plugin) {
|
|
|
|
print '<script src="'.PHPCI_URL.'assets/js/build-plugins/' . $plugin . '"></script>';
|
|
|
|
}
|
|
|
|
?>
|
2013-07-25 23:48:08 +02:00
|
|
|
|
2013-10-08 08:21:46 +02:00
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
PHPCI.renderPlugins();
|
2014-02-26 12:50:01 +01:00
|
|
|
|
|
|
|
$('#delete-build').on('click', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
confirmDelete(
|
|
|
|
"<?php echo PHPCI_URL ?>build/delete/<?php print $build->getId(); ?>", "Build"
|
|
|
|
).onCloseConfirmed = function () {window.location = '/'};
|
|
|
|
});
|
|
|
|
|
2013-10-08 08:21:46 +02:00
|
|
|
});
|
2014-01-28 22:27:39 +01:00
|
|
|
</script>
|