forked from koorchik/scrum-cards-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (68 loc) · 2.92 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
82
<!DOCTYPE html>
<html>
<head>
<title>Scrum cards</title>
<link rel="stylesheet" type="text/css" href="static/css/normalize.css">
<link rel="stylesheet" type="text/css" href="static/css/main.css">
<script type="text/javascript" src='static/js/3d-party/jquery.js'></script>
<script type="text/javascript" src='static/js/3d-party/handlebars.js'></script>
<script type="text/javascript" src='static/js/3d-party/promise-4.0.0.js'></script>
<script type="text/javascript" src='static/js/RedmineAPI.js'></script>
<script type="text/javascript" src='static/js/main.js'></script>
<script type="text/javascript">
$(document).ready(init);
</script>
</head>
<body>
<div>
<form>
<input id='url' type='text' placeholder='Enter redmine URL' />
<input id='ids'type='text' placeholder='Enter issues ids' />
<input id='submit' type='button' value='submit' />
</form>
</div>
<dic id="cards"></dic>
<!-- TEMPLATES -->
<script id='cards-template' type="text/template">
<table>
{{#each issues}}
<tr>
{{#each this}}
<td>
<div class='card {{lc tracker.name}}'>
<div class='title'> <span class='tracker'>{{tracker.name}} </span> #{{id}} {{#if assigned_to.name}}({{assigned_to.name}}) {{/if}}</div>
<div class='body'>
<div class='description'>
{{subject}}
</div>
<br />
{{#if children}}
<div>
<div class='subtitle'> Subtasks </div>
<div class='subtasks'>
{{#each children}}
#{{id}} - {{subject}} <br />
{{/each}}
</div>
</div>
{{/if}}
{{#if parent}}
<div>
<div class='subtitle'> Parent {{parent.tracker.name}} </div>
#{{parent.id}} - {{parent.subject}}
</div>
{{/if}}
</div>
<div class='footer'>
<span>
{{category.name}}
</span>
</div>
</div>
</td>
{{/each}}
</tr>
{{/each}}
</script>
</body>
</html>