-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.handlebars
58 lines (50 loc) · 1.63 KB
/
template.handlebars
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
<!DOCTYPE html>
<html>
<head>
<title>Language Sheet</title>
<link type='text/css' rel='stylesheet' href='index.css'>
<link type='text/css' rel='stylesheet' href='http://cdn.jsdelivr.net/qtip2/2.2.0/jquery.qtip.min.css'>
</head>
<body>
<a href='https://github.com/sixmen/langsheet'><img style='position: absolute; top: 0; left: 0; border: 0;' src='https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png' alt='Fork me on GitHub'></a>
<ul id='select_lang'>
{{#each languages}}
<li><input type='checkbox' value='{{@index}}' checked data-name='{{this}}'>{{this}}</li>
{{/each}}
</ul>
<table id='sheet'>
{{#each groups}}
<tbody>
<tr class='group_title'>
<td colspan='{{../table_columns}}'>{{title}}</td>
</tr>
<tr class='language_list'>
<td></td>
{{#each ../languages}}
<td>{{this}}</td>
{{/each}}
</tr>
{{#each items}}
<tr class='item'>
{{#getSheetContent this '_title'}}
<td class='{{this.cell_class}}'{{#if this.note}} title='{{this.note}}'{{/if}}>
{{this.body}}
</td>
{{/getSheetContent}}
{{#each ../../languages}}
{{#getSheetContent ../this this}}
<td class='{{this.cell_class}}'{{#if this.note}} title='{{this.note}}'{{/if}}>
{{format this.body}}
</td>
{{/getSheetContent}}
{{/each}}
</tr>
{{/each}}
</tbody>
{{/each}}
</table>
<script src='http://code.jquery.com/jquery-1.10.2.min.js' type='text/javascript'></script>
<script src='http://cdn.jsdelivr.net/qtip2/2.2.0/jquery.qtip.min.js' type='text/javascript'></script>
<script src='index.js' type='text/javascript'></script>
</body>
</html>