-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (104 loc) · 3.48 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
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Trello</title>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="markdown/Markdown.Converter.js"></script>
<script type="text/javascript" src="markdown/Markdown.Sanitizer.js"></script>
<script type="text/javascript" src="markdown/Markdown.Editor.js"></script>
<link href="style.css" rel="stylesheet" media="screen">
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<ul class="nav">
<li class="active"><a href="#">Comptage</a></li>
<li><a href="roadmap.html">Roadmap</a></li>
</ul>
</div>
</div>
<div class="container-fluid loading">
<!-- ko ifnot: authenticated -->
<div id="loggedout">
<a id="connectLink" href="#" data-bind="click: login">Connect To Trello</a>
</div>
<!-- /ko -->
<!-- ko if: authenticated -->
<div id="loggedin">
<div id="header">
Logged in to Trello as <span data-bind="text:user"></span>
<a id="disconnect" href="#" data-bind="click: logout">Log Out</a>
</div>
<div id="output">
<select id="boards" data-bind="options: boards, optionsText: 'name', value: selectedBoard, optionsCaption: 'Choisir un board...'">
</select>
<!-- ko with: selectedBoard -->
<a href="#" data-bind="click:updateLists"><i class="icon-refresh"></i></a>
<table class="table table-condensed">
<thead>
<tr>
<th colspan="2">Liste / Carte</th>
<th class="cost">Coût</th>
<th class="nbcards">#</th>
<th>Fin</th>
</tr>
</thead>
<!-- ko if: loading -->
<tbody>
<tr>
<td colspan="5">Loading...</td>
</tr>
</tbody>
<!-- /ko -->
<!-- ko ifnot: loading -->
<tbody>
<!-- ko foreach: boardLists -->
<tr data-bind="click:open">
<th colspan="2"><span data-bind="text:cleanName"></span></th>
<th><span class="cost" data-bind="text:total"></span></th>
<th colspan="2"><span class="nbcards" data-bind="text:nbCards"></span></th>
</tr>
<!-- ko if: cardsLoading -->
<tr><td colspan="5">Loading...</td></tr>
<!-- /ko -->
<!-- ko ifnot: cardsLoading -->
<!-- ko if: opened -->
<!-- ko foreach: cards -->
<tr>
<td></td>
<td><span data-bind="text:name, click:open"></span>
<!-- ko if: opened -->
<div data-bind="html:description"></div>
<!-- /ko -->
</td>
<td><span class="cost" data-bind="text:getCost"></span></td>
<td></td>
<td><span data-bind="text:dueDate"></span></td>
</tr>
<!-- /ko -->
<!-- /ko -->
<!-- /ko -->
<!-- /ko -->
<tr><th colspan="2"></th>
<th><span class="cost" data-bind="text:total"></span></th>
<th colspan="2"></th>
</tr>
</tbody>
<!-- /ko -->
</table>
<!-- /ko -->
</div>
</div>
<!-- /ko -->
</div>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/knockout/knockout-2.2.1.js"></script>
<script src="https://api.trello.com/1/client.js?key=fa55c46b1c5d9fc3f0aaee5b80a0177f"></script>
<script src="knockout.mapping.js"></script>
<script src="trello.js"></script>
<script src="app.js"></script>
</body>
</html>