-
Notifications
You must be signed in to change notification settings - Fork 1
/
boardz.html
135 lines (121 loc) · 3.84 KB
/
boardz.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<head>
<title>Boardz!</title>
</head>
<body>
{{> menu}}
{{> main}}
</body>
<template name="main">
<div class="container" id="container">
{{{content}}}
</div>
</template>
<template name="menu">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#/">Boardz!</a>
<div class="nav-collapse">
<ul class="nav">
<li {{#if page_is "home"}}class="active"{{/if}}><a href="#/">Home</a></li>
<li {{#if page_is "about"}}class="active"{{/if}}><a href="#/about">About</a></li>
</ul>
</div>
</div>
</div>
</div>
</template>
<template name="home">
<div class="row">
<div class="span12">
<div class="hero-unit">
<h1>Welcome to Boardz!</h1>
<p>This is a sample project to learn more about meteor framework.</p>
</div>
</div>
</div>
<div class="row">
<div class="span4 offset4">
<div class="page-header">
<h1>Available Boards!</h1>
</div>
<ul class="nav nav-tabs nav-stacked">
{{#each boards}}
<li><a href="#/boards/{{name}}">{{title}}</a></li>
{{/each}}
</ul>
<a class="btn add-board">Add board</a>
<br /><br />
<form class="well create-board-form" action="#/create" id="create-board-form" style="display: none">
<a class="close">×</a>
<div class="page-header">
<h2>Add board</h2>
</div>
<label>Title</label>
<input type="text" class="span3 board-title" name="board-title" placeholder="Type something…">
<button type="submit" class="btn btn-primary">Create board</button>
</form>
</div>
</div>
</template>
<template name="boards">
{{{init_sortable}}}
{{#with board}}
<div class="row">
<div class="span12">
<div class="page-header">
<h1>{{ title }}</h1>
</div>
</div>
</div>
<div class="row">
<div class="span4">
<div class="well">
<div class="page-header">
<h1>To do</h1>
</div>
<div class="todo sortable" data-column="todo">
{{#each todo}}
{{> card}}
{{/each}}
</div>
<a href="javascript:void(0);" class="add-card" data-column="todo">Add a card...</a>
</div>
</div>
<div class="span4">
<div class="well">
<div class="page-header">
<h1>Doing</h1>
</div>
<div class="doing sortable" data-column="doing">
{{#each doing}}
{{> card}}
{{/each}}
</div>
<a href="javascript:void(0);" class="add-card" data-column="doing">Add a card...</a>
</div>
</div>
<div class="span4">
<div class="well">
<div class="page-header">
<h1>Done</h1>
</div>
<div class="done sortable" data-column="done">
{{#each done}}
{{> card}}
{{/each}}
</div>
<a href="javascript:void(0);" class="add-card" data-column="done">Add a card...</a>
</div>
</div>
</div>
{{/with}}
</template>
<template name="card">
<div class="well card draggable" data-id="{{id}}">
<div class="editable">{{title}}</div>
</div>
</template>
<template name="about">
About page!
</template>