forked from michaelkirkpatrick/catalog-beer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-info.php
More file actions
46 lines (44 loc) · 1009 Bytes
/
Copy pathbuild-info.php
File metadata and controls
46 lines (44 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// Initialize
$guest = true;
include_once $_SERVER["DOCUMENT_ROOT"] . '/classes/initialize.php';
// Load Version
require_once ROOT . '/config/version.php';
// HTML Head
$htmlHead = new htmlHead('Build Info');
echo $htmlHead->html;
?>
<body>
<?php echo $nav->navbar(''); ?>
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<h1>Build Info</h1>
<table class="table">
<tbody>
<tr>
<th>Commit</th>
<td><?php echo htmlspecialchars(VERSION_COMMIT); ?></td>
</tr>
<tr>
<th>Branch</th>
<td><?php echo htmlspecialchars(VERSION_BRANCH); ?></td>
</tr>
<tr>
<th>Deployed</th>
<td><?php echo htmlspecialchars(VERSION_TIMESTAMP); ?></td>
</tr>
<?php if(VERSION_DIRTY){ ?>
<tr>
<th>Note</th>
<td>Deployed with uncommitted changes</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
<?php echo $nav->footer(); ?>
</body>
</html>