-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.php
55 lines (51 loc) · 1.92 KB
/
template.php
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
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<title>simple continuous delivery system</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<? if (!empty($output)) : ?>
<pre>
<?=$output?>
</pre>
<? endif; ?>
<div class="container">
<? if (!empty($error)) : ?>
<div class="alert alert-error" data-dismiss="alert">
<?=$error?>
<a class="close" data-dismiss="alert" href="#">×</a>
</div>
<? endif; ?>
<? if (!empty($info)) : ?>
<div class="alert alert-info">
<?=$info?>
<a class="close" data-dismiss="alert" href="#">×</a>
</div>
<? endif; ?>
<h1>Current branch: <?=$flow->getCurrentBranch()?></h1>
<form action="/" method="post">
<input type="hidden" name="action" value="changeBranch">
<select name="branch" style="margin-top:10px;">
<? foreach($flow->getBranches() as $branch): ?>
<option value="<?=$branch?>"><?=$branch?></option>
<? endforeach; ?>
</select>
<input class="btn btn-primary" type="submit" value="Change branch">
</form>
<hr>
<form action="/" method="post">
<input type="hidden" name="action" value="gitPull">
<input class="btn btn-primary" type="submit" value="Pull current branch (git pull)">
</form>
<br>
<form action="/" method="post">
<input type="hidden" name="action" value="clearCache">
<input class="btn btn-primary" type="submit" value="Clear cache for current branch (rm core/cache*)">
</form>
</div>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>