-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
46 lines (34 loc) · 1.35 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/main.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<script src="https://cdn.rawgit.com/launchpad-project/api.js/master/build/globals/api-min.js"></script>
<title>Retro - Dashboard</title>
</head>
<body>
<object data="navigation.html" name="navigation" type="text/html" height="60px" width="100%"></object>
<h1>Retro Dashboard</h1>
<ul class="retros-list list-unstyled" id="retrosList">
</ul>
<script type="text/javascript">
Launchpad.url('http://liferay.io/retrodash/retro/retro').get().then(
function(response) {
var sprintsList = document.getElementById('retrosList');
var retros = response.body();
for (i = 0; i < retros.length; i++) {
console.log(retros[i].sprintId);
var node = document.createElement("li");
var linkText = document.createTextNode(retros[i].discussion);
var a = document.createElement("a");
a.appendChild(linkText);
a.title = linkText;
a.href = "view_retro.html?id=" + retros[i].id;
node.appendChild(a);
sprintsList.appendChild(node);
}
}
);
</script>
</body>
</html>