-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.htm
341 lines (306 loc) · 16.1 KB
/
dashboard.htm
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>{{ data.Business.Name }}</title>
<!-- META -->
<meta name="description" content="{{ data.Business.Name }}"/>
<meta name="keywords" content="{{ data.Business.Name }}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="/Content/themes/public/default/css/dashboard/bootstrap.min.css"/>
<link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="/Content/themes/public/default/css/dashboard/icons.css"/>
<link rel="stylesheet" type="text/css" href="/Content/themes/public/default/css/dashboard/css.css"/>
<link rel="stylesheet" type="text/css" href="/Content/themes/public/default/css/dashboard/dashboard.css"/>
<style type="text/css">
.loading{
position: absolute;
background: #fff;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10000;
}
.animate-load{
border: 5px dotted #f8c40c;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
position: absolute;
height: 36px;
width: 36px;
display: inline-block;
animation: load 2s infinite linear;
-moz-animation: load 2s infinite linear;
-webkit-animation: load 2s infinite linear;
-o-animation: load 2s infinite linear;
left: 50%;
top: 50%;
margin-top: 0px;
margin-left: 0px;
}
@keyframes load{
0% { transform: rotate(0deg); }
100% { transform: rotate(359deg); }
}
@-moz-keyframes load{
0% { -moz-transform: rotate(0deg); }
100% { -moz-transform: rotate(359deg); }
}
@-webkit-keyframes load{
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(359deg); }
}
#canvas #rooms .rooms-container .room .hour.active{
background: {{ data.Local.PrimaryColor }};
}
#canvas #rooms .rooms-container .room .hour.active small{
background: {{ data.Local.PrimaryColor }};
}
</style>
<!-- JS -->
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="/Content/themes/public/default/js/dashboard/bootstrap.min.js"></script>
<script type="text/javascript" src="/Content/themes/public/default/js/dashboard/jquery.simpleWeather.min.js"></script>
<script type="text/javascript" src="/Content/themes/public/default/js/dashboard/dashboard.js"></script>
<!--[if lte IE 7]><script src="js/lte-ie7.js"></script><![endif]-->
<script type="text/javascript">
$(document).ready(function () {
var primaryColor = '{{ data.Local.PrimaryColor }}';
$('.dark-color').attr('fill', primaryColor);
$('.light-color').attr('fill', ColorLuminance(primaryColor, 0.3));
$('img:last').load(function () {
$('.loading').fadeOut(function () {
$('body').removeAttr('style');
setTimeout(function () {
$('body').addClass('ready')
}, 200)
});
});
});
setTimeout(function () {
location.reload();
}, 5 * 60 * 1000);
</script>
</head>
<body>
<div class="loading"><div class="animate-load"></div></div>
<!-- #canvas -->
<div id="canvas">
<!-- #logo -->
{% if data.Business.HasLogo %}
<img id="logo" src="{% Url Business, GetLogo, h:90 %}">
{% else %}
{{ data.Business.Name }}
{% endif %}
<!-- END #logo -->
<!-- #social-->
<section id="social">
<div class="social-item twitter" data-apikey="{{ data.Setting_Dashboard_TwitterCounter_ApiKey }}" data-twitter="{{ data.Setting_Dashboard_TwitterCounter_TwitterId }}">
<span class="icon icon-twitter i-32"></span>
<span class="number"></span>
</div>
<div class="social-item facebook" data-facebook="{{ data.Setting_Social_Facebook }}">
<span class="icon icon-facebook3 i-32"></span>
<span class="number"></span>
</div>
</section>
<!-- END #social-->
<!-- #time-->
<section id="time" class="circles">
<div class="text-container text-right">
<div class="day big"></div>
<div class="month light"></div>
<div class="clock light small">
<span class="hours"></span>:<span class="minutes"></span> <span class="ampm"></span>
</div>
</div>
<div class="icon-container">
<span class="icon icon-clock i-64"></span>
</div>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="190px" height="233px" viewBox="0 0 190 233" enable-background="new 0 0 190 233" xml:space="preserve">
<g>
<path class="dark-color" fill="#F8C40C" d="M190,0H10c4.085,59.543,37.127,111.121,85.149,140.768c-4.197,7.813-6.585,16.742-6.585,26.232
c0,30.65,25.066,55.5,55.718,55.5c18.836,0,35.718-9.394,45.718-23.74V0z"/>
<path class="light-color" fill="#fee123" d="M190,198.76c-10,14.347-26.882,23.74-45.718,23.74c-30.651,0-55.608-24.85-55.608-55.5c0-9.49,2.333-18.419,6.53-26.232
C47.182,111.121,14.085,59.543,10,0H-0.023l0.047,0.685C2.11,31.101,11.639,60.89,27.578,86.83
c13.998,22.781,32.891,42.575,54.97,57.67c-2.62,7.181-3.983,14.82-3.983,22.5c0,36.117,29.383,65.5,65.5,65.5
c17.225,0,33.75-6.813,45.936-18.646V198.76z"/>
</g>
</svg>
</section>
<!-- END #time-->
<!-- #weather-->
<section id="weather" class="circles"data-location="{{data.Business.Address | Replace: '\n', ' ' | Replace: '\r', ''}}" data-unit="c">
<div class="icon-container">
<i class="icon-30"></i>
</div>
<div class="text-container text-left">
<div class="temp big"></div>
<div class="city light uppercase"></div>
</div>
<svg version="1.1" id="Svg1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="190px" height="233px" viewBox="0 0 190 233" enable-background="new 0 0 190 233" xml:space="preserve">
<g>
<path class="dark-color" fill="#F8C40C" d="M0,233h179.977c-4.085-60-37.127-111.371-85.149-141.018c4.197-7.813,6.585-16.867,6.585-26.357
c0-30.65-25.055-55.563-55.706-55.563C26.87,10.063,10,19.394,0,33.74V233z"/>
<path class="light-color" fill="#fee123" d="M0,33.74C10,19.394,26.87,10,45.706,10c30.651,0,55.603,24.85,55.603,55.5c0,9.49-2.336,18.669-6.533,26.482
C142.798,121.629,175.892,173,179.977,233H190l-0.047-0.935c-2.087-30.417-11.615-60.331-27.555-86.271
c-13.998-22.781-32.891-42.638-54.97-57.732c2.62-7.181,3.983-14.852,3.983-22.531c0-36.117-29.371-65.516-65.488-65.516
C28.699,0.016,12,6.813,0,18.646V33.74z"/>
</g>
</svg>
</section>
<!-- END #weather-->
<!-- #members-->
<section id="members" class="circles">
<div class="icon-container">
<span class="icon icon-users i-64"></span>
</div>
<div class="text-container text-right">
<div class="number big">{{ data.Local.CheckedInMemberCount }}</div>
<div class="light uppercase">{% T Members %}</div>
<div class="clock light small">{% T in the space %}</div>
</div>
<svg version="1.1" id="Svg2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="190px" height="233px" viewBox="0 0 190 233" enable-background="new 0 0 190 233" xml:space="preserve">
<g>
<path class="dark-color" fill="#F8C40C" d="M190,233H10.025c4.085-60,37.127-111.38,85.149-141.026c-4.197-7.813-6.585-16.872-6.585-26.362
c0-30.65,25.053-55.565,55.706-55.565c18.836,0,35.705,9.329,45.705,23.676V233z"/>
<path class="light-color" fill="#fee123" d="M190,33.723c-10-14.347-26.869-23.74-45.705-23.74c-30.652,0-55.603,24.85-55.603,55.5c0,9.49,2.336,18.678,6.534,26.491
C47.204,121.62,14.11,173,10.025,233H0.001l0.047-0.943c2.087-30.417,11.615-60.336,27.555-86.275
c13.998-22.781,32.891-42.64,54.97-57.734c-2.62-7.181-3.983-14.853-3.983-22.532c0-36.117,29.37-65.517,65.487-65.517
C161.301-0.002,178,6.795,190,18.629V33.723z"/>
</g>
</svg>
</section>
<!-- END #time-->
<!-- #rooms-->
<section id="rooms">
<div class="rooms-title">{% T Bookings %}</div>
<div class="rooms-container carousel slide" data-ride="carousel">
<!-- SLIDES -->
<div class="carousel-inner">
{% DivRow room in data.Local.Resources cols:2, rowClass: 'item', colClass: 'room', firstRowClass: 'active' %}
<span class="title">{{ room.Name }}</span>
<div class="hours">
{% for hour in room.AvailableHoursToday %}
<div class="hour hour_1 {% if room.AvailableHoursToday[forloop.index0] == false %}active{% endif %}">
{% if forloop.index0 == 6 %}6 <small>am</small>{% endif %}
{% if forloop.index0 == 12 %}12 <small>pm</small>{% endif %}
{% if forloop.index0 == 18 %}6 <small>pm</small>{% endif %}
</div>
{% endfor %}
</div>
{% endDivRow %}
</div>
<!-- END SLIDES -->
</div>
<svg version="1.1" id="Svg3" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="285px" height="182px" viewBox="0 0 285 182" enable-background="new 0 0 285 182" xml:space="preserve">
<path class="dark-color" fill="#F8C40C" d="M44.208,182h102.59c9.431-7.29,17.273-16.535,22.909-27.136c8.867,3.69,18.59,5.736,28.793,5.736
c41.421,0,75-33.578,75-75s-33.579-75-75-75c-25.393,0-47.822,12.631-61.391,31.941C124.839,35.528,110.645,31.5,95.5,31.5
c-46.392,0-84,37.608-84,84C11.5,142.573,24.321,166.638,44.208,182z"/>
<path class="light-color" fill="#fee123" d="M29.128,182h15.08C24.321,166.638,11.5,142.573,11.5,115.5c0-46.392,37.608-84,84-84
c15.145,0,29.339,4.028,41.609,11.041C150.678,23.231,173.107,10.6,198.5,10.6c41.421,0,75,33.578,75,75s-33.579,75-75,75
c-10.203,0-19.926-2.046-28.793-5.736c-5.635,10.601-13.478,19.846-22.909,27.136h15.138c4.514-4.516,8.604-9.513,12.173-14.958
c7.881,2.364,16.052,3.559,24.391,3.559c46.869,0,85-38.131,85-85s-38.131-85-85-85c-24.71,0-48.116,10.813-64.178,29.297
C122.17,24.384,108.909,21.5,95.5,21.5c-51.832,0-94,42.168-94,94C1.5,141.448,12.069,164.974,29.128,182z"/>
</svg>
</section>
<!-- END #rooms-->
<!-- #users-->
<section id="users">
{% DivRow coworker in data.Local.Coworkers cols:5, rowClass: 'item', colClass: 'user', firstRowClass: 'active' %}
<!-- user-->
<img class="img-circle" src="{% Url Coworker, GetAvatar, id: coworker.Id, h:100, w:100 %}">
<p class="name uppercase">{{ coworker.FullName }}</p>
<p class="website">{{ coworker.ProfileWebsite | Replace: 'http://', '' | Replace: 'www.','' }}</p>
<p class="twitter-handle">{{ coworker.Twitter }}</p>
<!-- END user-->
{% endDivRow %}
</section>
<!-- END #users-->
<!-- #news-->
<section id="news">
<!-- Events -->
<div id="carousel-events" class="carousel slide" data-ride="carousel">
<div class="title">{% T Events %}</div>
<!-- Indicators -->
<ol class="carousel-indicators">
{% for event in data.Local.Events %}
<li data-slide-to="{{ forloop.index0 }}" class="{% if forloop.index0 == 0 %}active{% endif %}"></li>
{% endfor %}
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
{% if data.Local.Events.size == 0 %}
<div class="item active">
<p class="text">{% T No upcoming events %}</p>
</div>
{% endif %}
{% for event in data.Local.Events %}
<div class="item {% if forloop.index0 == 0 %}active{% endif %}">
<p class="date">{{ event.StartDate | FormatDate: 'M' }} {{ event.StartDate | FormatDate: 't' }}</p>
<p class="text">{{ event.Name }}</p>
</div>
{% endfor %}
</div>
</div>
<!-- END Events -->
<!-- News -->
<div id="carousel-news" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
{% for post in data.Local.BlogPosts %}
<li data-slide-to="{{ forloop.index0 }}" class="{% if forloop.index0 == 0 %}active{% endif %}"></li>
{% endfor %}
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
{% if data.Local.BlogPosts.size == 0 %}
<div class="item active">
<p class="text">{% T No recent news %}</p>
</div>
{% endif %}
{% for post in data.Local.BlogPosts %}
<div class="item {% if forloop.index0 == 0 %}active{% endif %}">
<p class="date">{{ post.PublishDate | FormatDate: 'M' }}</p>
<p class="text">{{ post.Title }}</p>
</div>
{% endfor %}
</div>
<div class="title">{% T News %}</div>
</div>
<!-- END News -->
<svg version="1.1" id="Svg4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="405px" height="405px" viewBox="0 0 405 405" enable-background="new 0 0 405 405" xml:space="preserve">
<g>
<path class="dark-color" fill-rule="evenodd" clip-rule="evenodd" fill="#F8C40C" d="M204.711,193.529l0.002-0.016
c65.254,4.267,128.23-5.129,186.145-25.702C374.535,78.61,296.417,11,202.5,11C96.737,11,11,96.737,11,202.5
c0,5.653,0.26,11.245,0.74,16.773C71.516,197.894,137.338,189.192,204.711,193.529z"/>
<path class="dark-color" fill-rule="evenodd" clip-rule="evenodd" fill="#F8C40C" d="M205,201.113v0.008c-67-4.393-132.559,6.588-191.943,28.574
C26.263,322.575,106.034,394,202.563,394c105.763,0,191.469-85.737,191.469-191.5c0-9.215-0.556-18.273-1.814-27.141
C333.867,195.858,270,205.257,205,201.113z"/>
</g>
<g>
<path class="light-color" fill="#fee123" d="M11.74,219.273C11.26,213.745,11,208.153,11,202.5C11,96.737,96.737,11,202.5,11c93.917,0,172.035,67.61,188.357,156.812
c3.19-1.133,6.366-2.299,9.525-3.5c-2.641-13.768-6.712-27.222-12.222-40.248c-10.149-23.996-24.677-45.544-43.179-64.046
c-18.503-18.502-40.051-33.03-64.047-43.179C256.088,6.329,229.698,1,202.5,1s-53.588,5.329-78.436,15.839
C100.068,26.988,78.52,41.516,60.018,60.018c-18.502,18.502-33.03,40.05-43.179,64.046C6.329,148.912,1,175.302,1,202.5
c0,6.848,0.339,13.644,1.013,20.377C5.235,221.636,8.48,220.439,11.74,219.273z"/>
<path class="light-color" fill="#fee123" d="M392.076,175.359c1.259,8.868,1.924,17.926,1.924,27.141C394,308.263,308.263,394,202.5,394
c-96.529,0-176.362-71.425-189.569-164.305c-3.212,1.189-6.41,2.406-9.587,3.659c2.505,16.332,7.01,32.251,13.495,47.581
c10.149,23.996,24.677,45.544,43.179,64.047c18.502,18.502,40.05,33.029,64.046,43.179C148.912,398.671,175.302,404,202.5,404
s53.588-5.329,78.436-15.839c23.996-10.149,45.544-24.677,64.047-43.179c18.502-18.503,33.029-40.051,43.179-64.047
C398.671,256.088,404,229.698,404,202.5c0-10.342-0.775-20.565-2.308-30.633C398.503,173.065,395.297,174.228,392.076,175.359z"/>
</g>
</svg>
</section>
<!-- END #news-->
</div>
<!-- END #canvas -->
</body>
</html>