-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
81 lines (73 loc) · 2.4 KB
/
index.html
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dashboard</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>
<header class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand"
href="https://github.com/lowsky/dashboard/">Dashboard</a>
</div>
</div>
</header>
<div class="container-fluid">
<div class="panel panel-default">
<div class="panel-heading">
<h1>Main</h1>
</div>
<div class="panel-body">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Git branch</th>
<th>GitHub</th>
</tr>
</thead>
<tbody id="branchesTable">
</tbody>
</table>
</div>
</div>
</div>
<script>
var branches = [
'link_to_deployed_app',
'dockerize',
'master',
'show-dummy-branches',
'simple-web-app'
];
var branchesTable = document.getElementById('branchesTable');
branches.forEach(function (b) {
var tr = document.createElement('tr');
tr.setAttribute('class', 'warning');
var td = document.createElement('td');
var a = document.createElement('a');
a.href='http://'+ b + '.dashboard/';
a.textContent = b;
td.appendChild(a);
tr.appendChild(td);
td = document.createElement('td');
var a = document.createElement('a');
a.textContent = 'on GitHub';
var githubImg = document.createElement('img');
githubImg.src = './Octocat.jpg';
githubImg.width = '32';
githubImg.alt = 'link to branch on github';
a.href = 'https://github.com/lowsky/dashboard/tree/' + b;
a.appendChild(githubImg);
td.appendChild(a);
tr.appendChild(td);
branchesTable.appendChild(tr);
});
</script>
</body>
</html>