forked from bradcerasani/handlebars-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (87 loc) · 2.49 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!doctype html>
<head>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<!--
<h2>The List of Shoes</h2>
<ul class="shoesNav">
</ul>
<h2>The List of Celebrities</h2>
<ul class="people">
</ul>
<h2>Grader</h2>
<ul class="grader-results">
</ul>
<h2>Student Scores</h2>
<ul class="student-score-results">
</ul>
-->
<h1 style="text-align: center;">Annotation Table</h1>
<table class="annotation-display">
<tr>
<th>CPG Sections</th>
<th>CQL Code</th>
<th>Description</th>
<th>References</th>
</tr>
</table>
<script id="annotation-table" type="text/x-handlebars-template">
{{#each tableSummary.rows}}
<tr>
<td>
{{#each cpgSection}}
<a href={{url}} target="_blank">{{label}}</a>
{{/each}}
</td>
<td>
{{#each cqlCode}}
<a href={{url}} target="_blank">{{label}}</a>
{{/each}}
</td>
<td>
{{#each description}}
{{text}}
{{/each}}
</td>
<td>
{{#each reference}}
<a href={{url}} target="_blank">{{label}}</a>
{{/each}}
</td>
</tr>
{{/each}}
</script>
<script id="shoe-template" type="text/x-handlebars-template">
{{#each allShoes}}
<li class="shoes">
<span class="shoe-name"> {{ name }} - </span> price: {{ price }}
{{> description}}
</li>
{{/each}}
</script>
<script id="shoe-description" type="text/x-handlebars-template">
<ul>
<li>{{ color }}</li>
<li>{{ size }}</li>
</ul>
</script>
<script id="people-list" type="text/x-handlebars-template">
{{#users}}
<li>{{ name.firstName }} {{ name.lastname }} is in the {{ ../groupName }} group.</li>
{{/users}}
</script>
<script id="student" type="text/x-handlebars-template">
<li>{{ name }} got a {{ grader score }}.</li>
</script>
<script id="student-scores" type="text/x-handlebars-template">
{{#studentScore this}}
<li>{{ firstName }} {{ lastName }}, your total score is <b>{{ score }}</b></li>
{{/studentScore}}
</script>
<link rel="stylesheet" href="css/styles.css">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0/handlebars.min.js"></script>
<script src="javascripts/main.js"></script>
</body>
</html>