-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (88 loc) · 2.96 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
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css"/>
<meta name="viewport" content="width=device-width, initial-scale=0.9, user-scalable=no">
<title>Dashboard</title>
<script src="https://apis.google.com/js/client.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
}
#map-canvas {
height:95%;
}
</style>
</head>
<body>
{{> dashboard}}
</body>
<template name="dashboard">
<div class="dashboard">
<header style="background: #{{dashboard.color}}">
<div id="boards">
{{#each boards}}
<button class="dashboard" style="background: #{{this.color}}" value="{{this._id}}">{{this.name}}</button>
{{/each}}
<form id="addDashboard"><input type="text" name="name" placeholder="+ dashboard" /></form>
<div class="clear"></div>
</div>
<div id="people">
<form id="invite">
<input type="text" name="email" placeholder="+ invite" />
</form>
{{loginButtons}}
<div class="clear"></div>
</div>
<div id="settings">
<div id="colors">
<button class="color gray" value="777"></button>
<button class="color blue" value="245791"></button>
<button class="color green" value="3C9124"></button>
<button class="color red" value="912424"></button>
<button class="color purple" value="4E2491"></button>
</div>
</div>
<div id="actualHeader">
<h1>{{dashboard.name}}</h1>
<div id="newWidgets">
{{#unless newUser}}
<button id="addWidgetButton">+</button>
<button id="viewBoardsButton">3</button>
{{/unless}}
<button id="viewPeopleButton">f</button>
<button id="viewSettingsButton">k</button>
</div>
<div class="clear"></div>
</div>
</header>
{{#if newUser}}
<div id="widgets">
<div id="welcome">
<h1>Welcome!</h1>
<p>Build awesome dashboards, collaborate with others.</p>
</div>
{{#each dashboard.widgets}}
{{> widget}}
{{/each}}
</div>
{{else}}
{{#if noDashboards}}
<h1>No dashboards</h1>
{{else}}
<div id="widgets">
{{#each dashboard.widgets}}
{{> widget}}
{{/each}}
</div>
{{/if}} {{! end noDashboards}}
{{/if}} {{! end newUser}}
</div>
</template>
<template name="widget">
{{{widget.html}}}
</template>