67 lines
1.7 KiB
PHTML
67 lines
1.7 KiB
PHTML
<div id="title">
|
|
<h1 style="display: inline-block">Dashboard</h1>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-3">
|
|
<ul class="nav nav-pills nav-stacked">
|
|
<li class="active"><a href="<?= PHPCI_URL ?>"><i class="icon-home"></i> Dashboard</a></li>
|
|
<li><a href="<?= PHPCI_URL ?>user"><i class="icon-user"></i> Users</a></li>
|
|
<li><a href="<?= PHPCI_URL ?>plugin"><i class="icon-user"></i> Manage Plugins</a></li>
|
|
</ul>
|
|
|
|
<?php if (count($projects)): ?>
|
|
<h5>Projects</h5>
|
|
<ul class="nav nav-pills nav-stacked">
|
|
<?php foreach($projects as $project): ?>
|
|
<li><a href="<?= PHPCI_URL ?>project/view/<?php print $project->getId(); ?>"><?php print $project->getTitle(); ?></a></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-lg-9">
|
|
<div class="box">
|
|
<h3 class="title">Project Overview</h3>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Health</th>
|
|
<th>Project</th>
|
|
<th>Last Success</th>
|
|
<th>Last Failure</th>
|
|
<th>Success/Failures</th>
|
|
<th style="width: 100px"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="project-overview">
|
|
<?php print $summary; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="box">
|
|
<h3 class="title">Last 5 Builds</h3>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Project</th>
|
|
<th>Commit</th>
|
|
<th>Branch</th>
|
|
<th>Status</th>
|
|
<th style="width: 90px"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="latest-builds">
|
|
<?php print $builds; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
setInterval(function()
|
|
{
|
|
$('#latest-builds').load('<?= PHPCI_URL ?>home/latest');
|
|
}, 10000);
|
|
</script>
|