forked from robinbattle/appinventororg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_base.html
350 lines (283 loc) · 12.9 KB
/
app_base.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
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
342
343
344
345
346
347
348
{% extends "site_base.html" %}
{% block body %}
<!-- HERO -->
<div class="hero-unit">
<div class="row-fluid">
<div class="span6">
<h1 style="font-size: 36px">{{ app.heroHeader }}</h1>
<br/>
<p style="font-size: 16px">{{ app.heroCopy }}</p>
</div>
<div class="span1">
</div>
<div class="span4">
<img class="" src="apps/{{ app.appId }}/hero.png" alt="screenshot">
</div>
<!-- end span -->
</div>
<!-- end row -->
<div class="row-fluid">
<figure>
<img class="qr" src="apps/{{ app.appId }}/qr.png" alt="" style="width:180px;height:180px">
<figcaption>
Scan this QR code to download the app
</figcaption>
</figure>
</div>
</div>
<!-- /HERO -->
<!-- BREADCRUMB -->
<div class="breadcrumb">
<div class="row-fluid">
<ul style="text-align:left">
{# <span class="span5">#}
{# {% if customs %}#}
{# <li>#}
{# <a class="lead" style="font-size:16px;">Build </a> <span#}
{# class="divider">{% if customs %}|{% endif %}</span>#}
{# </li>#}
{# {% endif %}#}
{##}
{# {% if customs %}#}
{# <li>#}
{# <a class="lead" style="font-size:16px;" href="#customize"> Customize </a> <span#}
{# class="divider">{% if concepts %}|{% endif %}</span>#}
{# </li>#}
{# {% endif %}#}
{##}
{# {% if concepts %}#}
{# <li>#}
{# <a class="lead" style="font-size:16px;" href="#conceptualize"> Conceptualize </a> <span#}
{# class="divider"></span>#}
{# </li>#}
{# {% endif %}#}
{##}
{# </span>#}
<span class="span10">
{% if app.pdfChapter %}
<li style="font-size: 10px; margin-right: 20px;">
<a class="btn btn-success btn-mini" style="background:#FFAE00;"
href="apps/{{ app.appId }}/{{ app.appId }}.pdf">
Download the chapter
<i class="icon-download-alt icon-white"></i></a>
</li>
{% else %}
<!--Hide PDF, nothing here-->
{% endif %}
<li style="font-size: 10px; margin-right: 20px;">
<a class="btn btn-success btn-mini"
href="apps/{{ app.appId }}/{{ app.appId }}.zip">
Download the source
<i class="icon-download-alt icon-white"></i>
</a>
</li>
<li style="font-size: 10px; margin-right: 20px;">
<a class="btn btn-success btn-mini"
href="apps/{{ app.appId }}/{{ app.appId }}.apk">
Download the APK
<i class="icon-download-alt icon-white"></i>
</a>
</li>
<li>
<a href="{{ app.appId }}-steps">New Version of This Page</a>
</li>
</span>
</ul>
</div>
</div>
<!-- /BREADCRUMB -->
<!-- BUILD IT section header -->
{% if steps %}
<div class="row-fluid">
<div class="page-header">
<h1 class="span8" id="build">Build It <br/>
<small>Follow the video steps below to build the app yourself.</small>
</h1>
<div class="span4" style="margin-top: 10px; text-align: center;">
</div>
<br/>
<br/>
<br/>
</div>
<!-- /page-header -->
</div>
{% endif %}
<!-- end row -->
<!-- /BUILD IT section header -->
<!-- STEP ITERATION -->
{% for step in steps|slice:":1" %}
<div class="step">
<div class="row-fluid">
<p class="lead">
<a data-toggle="collapse" data-target="#step{{ step.number }}">
<strong>step {{ step.number }}:</strong> {{ step.header }} <small>(click for details)</small>
</a>
</p>
</div>
<div id="step{{ step.number }}" class="collapse in">
<div class="row-fluid">
<p class="lead span8">
<small>{{ step.copy }}</small>
</p>
</div>
<div class="block-image span6">
<img class="thumbnail" src="apps/{{ app.appId }}/blocks{{ step.number }}.png" alt=""/>
</div>
<div class="step-video span4" style="margin-left:40px;">
<iframe class="thumbnail" width="374" height="210" src="{{ step.videoPath }}" frameborder="0" allowfullscreen></iframe>
<p>Looks best in <a href="{{ step.fullscreenPath }}">full screen</a>.</p>
</div>
</div>
</div>
{% endfor %}
{% for step in steps|slice:"1:" %}
<div class="step">
<div class="row-fluid">
<p class="lead">
<a data-toggle="collapse" data-target="#step{{ step.number }}">
<strong>step {{ step.number }}:</strong> {{ step.header }} <small>(click for details)</small>
</a>
</p>
</div>
<div id="step{{ step.number }}" class="collapse">
<div class="row-fluid">
<p class="lead span8">
<small>{{ step.copy }}</small>
</p>
</div>
<div class="block-image span6">
<img class="thumbnail" src="apps/{{ app.appId }}/blocks{{ step.number }}.png" alt=""/>
</div>
<div class="step-video span4" style="margin-left:40px;">
<iframe class="thumbnail" width="374" height="210" src="{{ step.videoPath }}" frameborder="0" allowfullscreen></iframe>
<p>Looks best in <a href="{{ step.fullscreenPath }}">full screen</a>.</p>
</div>
</div>
</div>
{% endfor %}
<!-- /STEP ITERATION -->
{% if concepts %}
<!-- CONCEPTUALIZE IT section header -->
<div class="row-fluid">
<div class="page-header">
<h1 id="customualize">Conceptualize It <br/>
<small>Can you picture it?</small>
</h1>
</div>
</div>
<!-- /CONCEPTUALIZE IT section header -->
<!-- CONCEPTUALIZE ITERATION -->
{% for concept in concepts %}
<div class="concept">
<div class="row-fluid"> <!-- start row -->
<p class="lead span12">
<a data-toggle="collapse" data-target="#concept{{ concept.number }}">
<strong> concept {{ concept.number }}:</strong> {{ concept.header }}
</a>
</p>
<p class="lead span8">
<small>{{ concept.copy }}</small>
</p>
</div>
<div id="concept{{ concept.number }}" class="collapse.in"> <!-- start collapse -->
<div class="row-fluid"> <!-- start row -->
<img class="span4 thumbnail" src="apps/notetaker/blocks{{ concept.number }}.png" alt=""
class="thumbnail">
<div class="span4" style="margin-left:40px;">
<iframe width="374" height="210" src="{{ concept.videoPath }}" frameborder="0"
allowfullscreen></iframe>
<p>Looks best in <a href="{{ concept.fullscreenPath }}">full screen</a>.</p>
</div>
</div>
<!-- end row -->
</div>
<!-- end collapse -->
</div>
{% endfor %}
<!-- /CONCEPTUALIZE ITERATION -->
{% endif %} <!-- end if list is not empty -->
{% if customs %}
<!-- CUSTOMIZE IT section header -->
<div class="row-fluid">
<div class="page-header" style="padding-bottom: 36px;">
<h1 class="span8" id="customize">Customize It <br/>
<small>Follow the suggestions below to tweak the app.</small>
</h1>
<div class="span2">
</div>
<div class="span2">
<a class="btn btn-success btn-mini"
href="apps/{{ app.appId }}/{{ app.appId }}_custom.zip">
Download the source
<i class="icon-download-alt icon-white"></i>
</a>
</div>
<br/>
<br/>
<br/>
</div>
</div> <!-- end row -->
<!-- /CUSTOMIZE IT section header -->
<!-- CUSTOMIZE ITERATION -->
{% for custom in customs|slice:":1" %}
<div class="custom">
<div class="row-fluid"> <!-- start row -->
<p class="lead span12">
<a data-toggle="collapse" data-target="#custom{{ custom.number }}">
<strong> custom {{ custom.number }}:</strong> {{ custom.header }}
</a>
</p>
</div>
<div id="custom{{ custom.number }}" class="collapse in"> <!-- start collapse -->
<div class="row-fluid"> <!-- start row -->
<p class="lead span8">
<small>{{ custom.copy }}</small>
</p>
{# <img class="span4 thumbnail" src="apps/notetaker/blocks{{ custom.number }}.png" alt=""#}
{# class="thumbnail">#}
{##}
{# <div class="span4" style="margin-left:40px;">#}
{# <iframe width="374" height="210" src="{{ custom.videoPath }}" frameborder="0"#}
{# allowfullscreen></iframe>#}
{# <p>Looks best in <a href="{{ custom.fullscreenPath }}">full screen</a>.</p>#}
{# </div>#}
</div>
<!-- end row -->
</div>
<!-- end collapse -->
</div>
{% endfor %}
{% for custom in customs|slice:"1:" %}
<div class="custom">
<div class="row-fluid"> <!-- start row -->
<p class="lead span12">
<a data-toggle="collapse" data-target="#custom{{ custom.number }}">
<strong> custom {{ custom.number }}:</strong> {{ custom.header }}
</a>
</p>
</div>
<div id="custom{{ custom.number }}" class="collapse"> <!-- start collapse -->
<div class="row-fluid"> <!-- start row -->
<p class="lead span8">
<small>{{ custom.copy }}</small>
</p>
{# <img class="span4 thumbnail" src="apps/notetaker/blocks{{ custom.number }}.png" alt=""#}
{# class="thumbnail">#}
{##}
{# <div class="span4" style="margin-left:40px;">#}
{# <iframe width="374" height="210" src="{{ custom.videoPath }}" frameborder="0"#}
{# allowfullscreen></iframe>#}
{# <p>Looks best in <a href="{{ custom.fullscreenPath }}">full screen</a>.</p>#}
{# </div>#}
</div>
<!-- end row -->
</div>
<!-- end collapse -->
</div>
{% endfor %}
<!-- /CUSTOMIZE ITERATION -->
{% endif %} <!-- end if list is not empty -->
{% endblock %}
{#end of body block#}