This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
templates.jsp
executable file
·2838 lines (2580 loc) · 124 KB
/
templates.jsp
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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<div>
<!-- Attributions>
Font Awesome - http://fortawesome.github.com/Font-Awesome
</Attributions-->
<!-- Templates -->
<script type="text/template" id="resource-list">
<!-- Resource list page -->
<sidebar class="menuLeft" ></sidebar>
<sidebar class="menuRight" ></sidebar>
<!-- div class="headerMessageBar"></div -->
<div class="headerDiv"></div>
<div id="mapHolder" data-role="none"></div>
<div id="sidebarDiv" role="main">
<!--
{{ if (this.collection.models.length > 5) { }}
<form role="search">
<p>
<input type="text" placeholder="Search..." required="">
<button type="reset">Clear</button>
</p>
</form>
{{ } }}
-->
<section id="sidebar" data-type="list">
</section>
<div id="nabs_grid" class="masonry"></div>
<table class="table-stroke" width="100%" style="display:none" id="comments">
</table>
<form data-ajax="false" id="mv" action="#">
<div style="width:100%;padding-top:1rem;text-align:center">
<button type="submit" style="background-color:#eee; width:90%" id="mvSubmit">{{= loc('submit') }}</button>
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" id="mvChooser">
</fieldset>
</div>
</form>
<form data-ajax="false" id="editRlForm" action="#">
<div class="signable"><input type="submit" id="editRlSubmit" value="Submit" /></div>
<div data-type="list" id="editRlList" class="action-list">
</ul>
</form>
</div>
</script>
<script type="text/template" id="scrollbarTemplate">
<span id="{{= obj.id || 'scrollbar' + G.nextId() }}" class="scrollbar" style="position:absolute; {{= (obj.width ? 'width:' + width + 'px;' : '') + (obj.height ? 'height:' + height + 'px;' : '') }}">
<div class="scrollbarinner">
</div>
</span>
</script>
<script type="text/template" id="resource">
<!-- Single resource view -->
{{ var isTradle = this.resource.isAssignableFrom('commerce/trading/Tradle'); }}
<sidebar class="menuLeft"></sidebar>
<sidebar class="menuRight"></sidebar>
<!-- div class="headerMessageBar"></div -->
<div class="headerDiv"></div>
<div id="resourceViewHolder">
<div style="width: 100%;position:relative;padding-right:10px;overflow:hidden;margin-left:0;" class="container_16">
{{ var isKYCDocument = G.currentApp.appPath === 'KYC' && U.isAssignableFrom(this.vocModel, 'model/portal/SharedFile'); }}
{{ if (this.isImageCover) { }}
<div id="resourceImage" style="margin:0;position:absolute;z-index:1" class="grid_3"></div>
<div data-role="footer" class="thumb-gal-header hidden"
style="opacity:0.7;position:absolute;top:251px;width:100%;background:#eee;text-shadow:none;color:{{= G.darkColor }};">
<h3></h3>
</div>
<div id="mainGroup" style="padding-right:5px;" {{= U.isAssignableFrom(this.vocModel, 'Tradle') ? 'class="grid_10"' : ''}}></div>
{{ } }}
{{ if (!this.isImageCover && !isKYCDocument) { }}
<div id="resourceImage" style="width:50%;float:left;margin:0;' padding:0;{{= U.getArrayOfPropertiesWith(this.vocModel.properties, "mainGroup") && U.isA(this.vocModel, 'ImageResource') ? 'min-height:160px;' : ''}}" ><!-- style="width:auto" --></div>
<div id="mainGroup" style="padding-right:5px;"></div>
{{ } }}
<!--div id="resourceImage" style="width:50%;float:left;margin:0; padding:0;"--><!-- style="width:auto" --></div>
<!--div id="buyGroup" class="ui-block-b" style="width:50%; min-width: 130px"></div-->
</div>
<div id="resourceImageGrid" data-role="content" style="padding: 2px;" class="hidden"></div>
{{ if (!this.isImageCover) { }}
<div data-role="footer" class="thumb-gal-header hidden"><h3></h3></div>
{{ } }}
<div class="thumb-gal-header hidden"><h3></h3></div>
<!--div id="photogrid" style="padding: 7px;" data-role="content" class="hidden">
</div-->
<div data-inset="true" data-filter="false" class="photogrid thumb-gal hidden" style="height: 115px;">
</div>
{{= this.hasSocialLinks ? '<div class="socialLinks"></div>' : '' }}
{{ if (this.vocModel.type.endsWith("Impersonations")) { }}
<button class="impersonation"><a data-role="button" data-icon="heart" href="{{= U.makePageUrl('make', 'http://www.hudsonfog.com/voc/model/portal/Comment', {$editCols: 'description', forum: this.resource.get('_uri'), '-makeId': G.nextId()}) }}">{{= loc('wooMe') }}</a></button>
{{ } }}
<div class="stockCharts hidden"></div>
<section data-type="list">
<ul id="{{= isTradle ? 'cpView' : 'resourceView' }}">
</ul>
</section>
<div id="about" class="hidden" style="padding: 7px;"></div>
<section data-type="list">
<ul id="{{= isTradle ? 'resourceView' : 'cpView' }}">
</ul>
</section>
</div>
</script>
<script type="text/template" id="feedChooserQuickstartTemplate">
<div class="quickstart-content">
<i class="ui-icon-remove"></i>
<h2>Quickstart</h2>
<h3>There are a TON of feeds on Tradle. Here's how to find the one you need</h3>
<ol class="quickstart-options">
<li>
<a href="#" class="mini-cta" data-selector=".subClass:nth-child(2)" data-tooltip="Choose one of these feed categories" data-direction="bottom">Choose a category</a>
OR
<a href="#" class="mini-cta" data-selector=".search-active .searchBar,.headerDiv .ui-icon-search" data-tooltip="Click here to search for a feed by name" data-direction="bottom-left">Search by name</a>
</li>
<li>
<a href="#" class="mini-cta" data-selector="section[data-type="list"]" data-tooltip="Click any of the feeds shown below to see the indicators it provides" data-direction="top">Choose a feed</a> from the filtered down list
</li>
</ol>
</div>
</script>
<script type="text/template" id="requestForVerification">
{{ if (obj.signable) { }}
<section class="signable" style="text-align:center;">
<a id="sign" href="#" class="button {{= obj.verifyId }}" style="{{= obj.$verifierPhoto ? 'padding-left:0;' : '' }}height:inherit;">
{{= obj.$verifierPhoto ? '<img src="' + obj.$verifierPhoto + '"' + ' style="vertical-align:middle;" width="50" height="50"/> ' : '' }}
{{= !obj.verifyId || obj.verifyId == 'askToVerify' ? 'Ask to verify' : 'Verify' }}
</a>
</section>
{{ } }}
</script>
<script type="text/template" id="indicatorChooserQuickstartTemplate">
<div class="quickstart-content">
<i class="ui-icon-remove"></i>
<h2>Quickstart</h2>
<h3>This feed provides the following indicators. Choose one to add to your Tradle (you can choose more later)</h3>
<ol class="quickstart-options">
<li>
<a href="#" class="mini-cta" data-selector="section[data-type="list"]" data-tooltip="Click on a row to choose an indicator" data-direction="top">Choose an indicator</a>
</li>
</ol>
</div>
</script>
<script type="text/template" id="indicatorVariantChooserQuickstartTemplate">
<div class="quickstart-content">
<i class="ui-icon-remove"></i>
<h2>Quickstart</h2>
<h3>You're almost done! This indicator has technicals. Choose one or more to add to your Tradle, then click <a href="#" style="font-size:15px;font-weight: normal;" class="mini-cta" data-selector=".saveBtn" data-direction="bottom" data-tooltip="Over here!">Done</a> up top</h3>
</div>
</script>
<script type="text/template" id="tradleViewQuickstartTemplate">
<div class="quickstart-content">
{{ var res = this.resource, name = res.get('title'), desc = res.get('description'), ils = res.getInlineLists() || {}, rules = ils.tradleRules, nRules = rules && rules.length, indicators = ils.indicators, nIndicators = indicators && indicators.length; }}
{{ var alerts = ils.notifications, trades = ils[U.getTradleOrdersProp()], nTrades = trades && trades.length, nAnything = nIndicators || nRules || nTrades, activated = res.get('activated'), isPublic = res.get('isPublic'); }}
{{ var currentStep = !nIndicators ? 0 : !nRules ? 1 : !nTrades ? 2 : 3; }}
<i class="ui-icon-remove"></i>
<h2>Quickstart
<subtitle>
{{ if (currentStep < 3) { }}
{{= [0, 1, 2].map(function(step) { return '<span class="step-{0}">{1}</span>'.format(currentStep == step ? 'current' : currentStep > step ? 'complete' : 'incomplete', ++step) }).join('-') }}
{{ } }}
{{ if (currentStep >= 3) { }}
complete
{{ } }}
</subtitle>
</h2>
{{ if (currentStep < 3) { }}
{{ if (!desc && !nAnything) { }}
<h3>Welcome to your new tradle!</h3>
{{ } }}
<h3>Step {{= (currentStep + 1) }} is to...</h3>
<ul class="quickstart-options" style="list-style:none;">
{{ if (currentStep == 0) { }}
<li>
<a class="mini-cta" href="#" data-selector="header[data-shortname="tradleRules"]" data-tooltip="Click here to add indicators" data-direction="top" data-offset-top="-20">Add indicators</a> to your tradle.
</li>
{{ } }}
{{ if (currentStep == 1) { }}
<li>
<a class="mini-cta" href="#" data-selector="li[data-backlink="indicators"]:nth-child(1)" data-tooltip="Click an indicator to make a rule with it" data-direction="bottom">Create rules</a> out of the indicators you've chosen
</li>
{{ } }}
{{ if (currentStep == 2) { }}
<li>
<a class="mini-cta" href="#" data-selector="li[data-backlink="{{= U.getTradleOrdersProp() }}"],header[data-shortname="{{= U.getTradleOrdersProp() }}"]" data-tooltip="Click here to add trades" data-direction="bottom" data-offset-top="25">Add trades</a> to be executed when your tradle fires
</li>
{{ } }}
</ul>
{{ } }}
{{ if (currentStep >= 3) { }}
<h3>Don't forget to:</h3>
<ul class="quickstart-options">
{{ if (name == 'New tradle') { }}
<!-- if there's no description and we're not ready to activate yet -->
<li>
<a class="mini-cta" href="#" data-selector=".socialLinks .ui-icon-edit" data-tooltip="Click here to edit the name and description" data-direction="top">Name</a> your tradle
</li>
{{ } }}
{{ if (!isPublic && nRules) { }}
<li>
Make your tradle <a class="mini-cta" href="#" data-selector=".socialLinks .ui-icon-edit" data-tooltip="Click to edit, then flip the 'Public' switch to 'On'" data-direction="top">Public</a> to share it with the world
</li>
{{ } }}
{{ if (isPublic) { }}
<li>
<a class="mini-cta" href="#" data-selector=".socialLinks .ui-icon-twitter" data-tooltip="Click here whenever you want to Tweet your tradle" data-direction="top">Tweet</a> your tradle
</li>
{{ } }}
{{ if (!activated && nRules) { }}
<li>
<a class="mini-cta" href="#" data-selector=".activatable" data-tooltip="This switch turns your tradle on or off" data-direction="left">Activate</a> your tradle. {{= this.vocModel.properties.activated.comment || '' }}
</li>
{{ } }}
</ul>
{{ } }}
</div>
</script>
<script type="text/template" id="ruleChooserQuickstartTemplate">
<div class="quickstart-content">
<i class="ui-icon-remove"></i>
<h2>Quickstart</h2>
{{ var indicator = _.toQueryParams(this.hashParams.$props).indicator; }}
{{ if (indicator) { indicator = U.getResource(indicator); } }}
{{ var feedName = indicator && indicator.get('tradleFeed.displayName'); }}
{{ var name = indicator ? U.getDisplayName(indicator) : this.hashParams.$title; }}
{{ name = feedName ? feedName + ': ' + name : name; }}
<h3>Choose a rule to create with indicator "{{= name }}"</h3>
<ul class="quickstart-options">
<li>
<a href="#" class="mini-cta" data-selector="section[data-type="list"]" data-tooltip="Click on a row to choose a rule" data-direction="top">Choose a rule</a>
</li>
</ul>
</div>
</script>
<script type="text/template" id="ftItemTemplate">
<li class="ftItem">
<a href="{{= location.uri }}" target="_blank" style="padding:10px 0">
<span style="float:right;">
{{= U.toMDYString(Date.parse(lifecycle.lastPublishDateTime)) }}
</span>
<span style="display:block; font-size:1.6rem; font-weight:bold;">
{{= title.title }}
</span>
<span style="display:block; font-size:1.4rem;color:#757575;">
{{= summary.excerpt }}
</span>
<span>
{{= editorial.byline }}
</span>
</a>
</li>
</script>
<script type="text/template" id="inlineListItemTemplate">
<!-- one row of an inline backlink in view mode -->
<li data-viewid="{{= viewId }}" data-uri="{{= resource.getUri() }}" data-backlink="{{= backlink }}"
{{ if (isTrade) { }}
style="text-align:center;padding:0;border:none;" class="trades"
{{ } }}
>
<a href="{{= href }}" data-uri="{{= resource.getUri() }}" data-backlink="{{= backlink }}" {{= obj._problematic ? 'class="problematic"' : '' }} style="{{= !isIndicator && (obj.img || obj.needsAlignment) ? '' : 'padding:1rem 0;'}} {{= obj.noclick ? 'cursor:default;' : 'cursor:pointer;' }}{{= isTrade ? 'font-size:inherit;' : 'font-size:1.6rem' }}">
{{ if (!isIndicator && obj.img) { }}
<img data-lazysrc="{{= img.indexOf('/Image') == 0 ? img.slice(6) : img }}"
{{ if (obj.top) { }}
style="max-height:none;max-width:none;
left:-{{= left }}px; top:-{{= top }}px;
clip:rect({{= top }}px, {{= right }}px, {{= bottom }}px, {{= left }}px);"
{{ } }}
{{ if (!obj.top) { }}
style="max-height:80px;max-width:80px;"
{{ } }}
data-for="{{= U.getImageAttribute(resource, imageProperty) }}"
class="lazyImage" />
{{ } }}
{{ if ((!isIndicator && !obj.img) && obj.needsAlignment) { }}
<img src="{{= G.getBlankImgSrc() }}" height="80" style="vertical-align:middle;"/>
{{ } }}
<span style="{{= !isIndicator && (obj.img || obj.needsAlignment) ? 'position:absolute;padding:10px;' : ''}}font-weight:bold;">{{= obj.gridCols ? (obj.gridCols.indexOf(name) == -1 ? name + '<br/>' + gridCols : gridCols) : name }}</span>
</a>
{{ if (typeof comment != 'undefined') { }}
<p>{{= comment }}</p>
{{ } }}
</li>
</script>
<script type="text/template" id="inlineAddTemplate">
<li data-viewid="view7" data-backlink="{{= backlink }}" data-action="add" style="background: rgba(40, 146, 198, 0.25);" class="{{= obj.class || '' }}">
<div style="font-size:1.6rem;padding-top:1rem;"><span>{{= hint }}</span></div>
<div style="text-decoration:none">{{= action }}</div>
</li>
</script>
<script type="text/template" id="actionsOverlayTemplate">
<div class="anim-overlay centered {{= active ? 'anim-overlay-active' : '' }}" data-uri="{{= _uri }}">
<div class="drawer-tab-left">
<i class="ui-icon-chevron-left vcenteredA"></i>
</div>
<div class="anim-overlay-content vcenteredA">
{{ var cols = _.compact(_.values(actions)).length; }}
{{ if (actions.cancel) { }}
<div class="span_1_of_{{= cols }}" style="color:#f00;">
<i class="ui-icon-remove" data-action="cancel"></i>
</div>
{{ } }}
{{ if (actions.add) { }}
<div class="span_1_of_{{= cols }}">
<i class="ui-icon-plus" data-action="add"></i>
</div>
{{ } }}
{{ if (actions.edit) { }}
<div class="span_1_of_{{= cols }}">
<i class="ui-icon-edit" data-action="edit"></i>
</div>
{{ } }}
{{ if (actions.comment) { }}
<div class="span_1_of_{{= cols }}">
<i class="ui-icon-comments" data-action="comment"></i>
</div>
{{ } }}
</div>
<div class="drawer-tab-right">
<i class="ui-icon-chevron-right vcenteredA"></i>
</div>
</div>
</script>
<script type="text/template" id="inlineCompareIndicatorsRuleTemplate">
<li data-viewid="{{= viewId }}" data-backlink="{{= backlink }}" data-uri="{{= resource.getUri() }}" style="padding:0;" class="tradleRules">
{{ var byPercent = ~resource.getUri().indexOf('ByRule?'); }}
<div class="cf" style="font-size:1.6rem;font-weight:bold;text-align:center; height: auto; padding: 1.5rem 0; width: 100%">
<div style="float:left; width:40%; height:100%;">
{{ if (resource.get('feedImage')) { }}
<img style="padding-left:1rem;float:left;af" src="{{= resource.get('feedImage') }}" />
{{ } }}
<div class="rule1">
{{= resource.get('indicator.displayName') }}
</div>
<div>
{{ if (resource.get('tradleFeed')) { }}
{{ var feed = resource.get('feed') || ''; }}
{{ var isStock = ~feed.indexOf('/Stock?'); }}
{{ var isIndex = ~feed.indexOf('/Index?'); }}
{{ var dn = isStock || isIndex ? _.toQueryParams(feed).symbol : resource.get('feed.displayName'); }}
<div class="tradleFeed" {{= isIndex || isStock ? 'style="font-size:4rem;line-height:3rem;font-weight:bold;"' : '' }}><!-- href="{{= U.makeMobileUrl('view', resource.get('tradleFeed')) }}"-->
{{= dn }}
</div>
{{ } }}
</div>
</div>
<div style="float:left; width:20%; height:100%; font-size:2.3rem;">
{{ var op = U.getRuleOperator(resource), lop = op.toLowerCase(); }}
{{ var cl = lop == 'rose' ? 'ui-icon-arrow-up' : lop == 'fell' ? 'ui-icon-arrow-down' : ''; }}
<div class="ruleOperator ruleOperator{{= (lop.length > 3 ? 'Long' : 'Short') + ' ' + cl }}">
{{= cl ? '' : op }}
</div>
{{ if (byPercent) { }}
<div>
<span style="font-size:1.5rem;">BY</span>
{{= resource.get('percentValue') }}%
</div>
{{ } }}
</div>
<div style="float:left; width:40%; height:100%;">
{{ if (resource.get('compareWith')) { }}
{{ if (resource.get('compareWithFeedImage')) { }}
<img style="float:right;" src="{{= resource.get('compareWithFeedImage') }}" />
{{ } }}
<div class="rule1">
{{= resource.get('compareWith.displayName') }}
</div>
<div>
{{ if (resource.get('compareWithTradleFeed')) { }}
{{ var cmpFeed = resource.get('compareWithFeed') || ''; }}
{{ var isStock = ~cmpFeed.indexOf('/Stock?'); }}
{{ var isIndex = ~cmpFeed.indexOf('/Index?'); }}
{{ var dn = isStock || isIndex ? _.toQueryParams(cmpFeed).symbol : resource.get('compareWithFeed.displayName'); }}
<div {{= isIndex || isStock ? 'style="font-size:4rem;line-height:3rem;font-weight:bold;"' : '' }} class="tradleFeed"> <!--href="{{= U.makeMobileUrl('view', resource.get('compareWithTradleFeed')) }}" class="tradleFeed"-->
{{= dn }}
</div>
{{ } }}
</div>
{{ } }}
{{ if (!resource.get('compareWith')) { }}
<div style="font-size:4rem;padding-bottom:1rem;">
{{= U.getRuleValue(resource) }}
</div>
{{ } }}
</div>
</div>
</li>
{{ if (!obj.isLast) { }}
<li class="ruleCombinator" style="border: 0;width: 100%;margin: 0 auto;padding: 0;color: #888;z-index: 2;font-size: 2rem; text-align:center;min-height: initial;">
<div>-- AND --</div>
</li>
{{ } }}
</script>
<script type="text/template" id="socialLinksTemplate">
<!-- Social Links -->
{{ var r = this.resource, uri = r.getUri(), owner = r.get('owner'), submittedBy = r.get('submittedBy'), user = G.currentUser._uri, isOwner = user && user == (owner || submittedBy); }}
{{ if (user && (user == owner || user == submittedBy)) { }}
<a class="socialAction" href="{{= U.makePageUrl('edit', r.getUri()) }}"><span class="ui-icon-edit" data-url="{{= uri }}"> EDIT</span></a>
{{ } }}
{{ if (U.getBacklinkCount(r, 'tradleRules')) { }}
<a href="{{= U.getTwitterLink(r) }}" class="socialAction" data-url="{{= uri }}"><span class="ui-icon-twitter" target="_blank"> TWEET</span></a>
{{ } }}
<a href="{{= U.makePageUrl('view', uri + '&$clone=y') }}" class="socialAction" data-url="{{= uri }}"><span class="ui-icon-fork"> CLONE</span></a>
<a href="{{= G.serverName }}/widget/embed.html?uri={{= encodeURIComponent(uri) }}" class="socialAction" data-url="{{= uri }}"><span class="ui-icon-embed"> EMBED</span></a>
<!--a href="{{= G.serverName }}/widget/embed.html?-embed=y&uri={{= encodeURIComponent(uri) }}" class="socialAction" data-url="{{= uri }}"><span class="ui-icon-embed"> EMBED</span></a-->
</li>
</script>
<script type="text/template" id="privateBetaPageTemplate">
<div class="section" id="section_bg">
<sidebar class="menuLeft"></sidebar>
<sidebar class="menuRight"></sidebar>
<div class="headerDiv">
<ul class="headerUl">
</ul>
</div>
<div class="section-content" style="padding: 0 1rem;">
<div class="title-block">
{{ var guest = G.currentUser.guest, appInstall = G.currentUser.appInstall || {}, activated = appInstall.activated; }}
{{ if (guest) { }}
<span class="section-title">Sign up for early access</span>
<span class="section-title _2">Get involved now!</span>
{{ } }}
{{ if (activated) { }}
<span class="section-title">You got early access!</span>
<span class="section-title _2">See how to make the most of your Tradle membership below</span>
{{ } }}
{{ if (!guest && !activated) { }}
<span class="section-title">There are {{= appInstall.numberInLine }} users ahead of you</span>
<span class="section-title _2">But don't wait, get involved now!</span>
{{ } }}
</div>
<div class="group highlightCols">
<div class="col span_1_of_3">
<i class="ui-icon-users"></i>
<h4 style="font-weight:100;">Sign up 3 people</h4>
<p>
<strong>Get access & the invites to give away</strong>
<div>
{{ var n = appInstall.referredInstallsCount || 0; }}
Post any Tradle URL anywhere online and earn rewards on signups and sales you facilitate.
{{ if (G.currentUser.guest ) { }}
<a href="#" class="link reqLogin">Login</a> and all links in your address bar become personalized.
{{ } }}
{{ if (!G.currentUser.guest ) { }}
You've signed up
<span style="color:#00B608;font-size:16px">{{= n }}</span> {{= n == 1 ? 'person' : 'people' }} so far. Link below is an example link you can use.
<input type="text" style="width:80%; margin: 10px auto; display: block;" onfocus="Lablz.U.selectInputText(arguments[0]);" value="{{= U.getReferrerLink() }}" readonly="readonly" />
{{ } }}
</div>
</p>
<div>
<a href="app/Tradle/article/sql/www.hudsonfog.com/voc/media/publishing/Article?articleId=32005" class="link">learn more</a>
</div>
</div>
<div class="col span_1_of_3">
<i class="ui-icon-cart" style="color:#9CF7A0;"></i>
<h4 style="font-weight:100;">Subscribe to paid services</h4>
<p>
<strong>Gain influence over priority features</strong>
<div>
Get instant access. Gain right to upvote/downvote <a href="app/Tradle/list/software/crm/Feature">features in our pipeline</a> and suggest new features.
</div>
</p>
<div>
<a href="app/Tradle/article/sql/www.hudsonfog.com/voc/media/publishing/Article?articleId=32005" class="link">learn more</a>
</div>
</div>
<div class="col span_1_of_3">
<i class="ui-icon-comments" style="color:#6798F0;"></i>
<h4 style="font-weight:100;">Advise us</h4>
<p>
<strong>Help us grow our business fast</strong>
<div>
We pledge to make it worthwhile for you in the form of shares in Tradle. Please contact us to discuss the opportunity.
</div>
</p>
<div>
<a href="app/Tradle/article/sql/www.hudsonfog.com/voc/media/publishing/Article?articleId=32005" class="link">learn more</a>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="articlePageTemplate">
<sidebar class="menuLeft" class="menuLeft"></sidebar>
<sidebar class="menuRight" class="menuRight"></sidebar>
<div class="section">
<div class="headerDiv">
<ul class="headerUl">
</ul>
</div>
<div class="articleBody"></div>
</div>
</script>
<script type="text/template" id="articleViewTemplate">
<div class="section-content">
<div class="title-block">
<span class="section-title">{{= title }}</span>
</div>
<div style="text-align: left;padding: 30px;">
{{= body }}
</div>
</div>
</script>
<script type="text/template" id="colTemplate">
<div class="section-content">
<div class="title-block">
<span class="section-title" style="color:#83C2E0">{{= obj.title || '' }}</span>
<span class="section-title _2">{{= obj.subTitle || '' }}</span>
</div>
<div class="group">
{{ for (var i = 0, l = cols.length; i < l; i++) { }}
{{ var col = cols[i]; }}
<div class="col span_1_of_{{= l }}" style="{{= (l < 3 ? 'text-align:center;' : '') + (l == 1 ? 'float:none;width:100%;' : '') }}">
{{ if (col.icon) { }}
<i class="{{= col.icon['class'] }}" style="color:{{= col.icon.color }}"></i>
{{ } }}
{{ if (col.img) { }}
<div class="headshot1">
<img src="{{= col.img }}" style="border-color: #C5E4FF;" />
</div>
{{ } }}
{{ if (col.title) { }}
<h4 style="font-weight:100;">{{= col.title }}</h4>
{{ } }}
{{ if (col.subTitle || col.body) { }}
<p>
{{ if (col.subTitle) { }}
<strong>{{= col.subTitle }}</strong>
{{ } }}
{{ if (col.body) { }}
<div style="{{= l < 3 ? 'text-align:left;padding: 30px;' : '' }}">{{= col.body }}</div>
{{ } }}
</p>
{{ } }}
{{ if (col.link) { }}
<a href="{{= col.link.href }}" class="{{= col.link.className || 'link' }}">{{= col.link.text }}</a>
{{ } }}
</div>
{{ } }}
</div>
{{ if (obj.action) { }}
<div style="text-align:center;">
<a href="{{= action.href }}" class="cta">{{= action.text }}</a>
</div>
{{ } }}
</div>
</script>
<script type="text/template" id="pricingPageTemplate">
<div class="section" id="section_bg">
<sidebar class="menuLeft"></sidebar>
<sidebar class="menuRight"></sidebar>
<div class="headerDiv">
<ul class="headerUl">
</ul>
</div>
<div class="section-content" style="margin:0 auto;padding: 0 1rem;">
<div class="title-block">
<h1 class="section-title">Pricing for Individuals</h1>
<h3 class="section-title _2">Creating and running tradles</h3>
<h3 class="section-title _2"><a href="app/Tradle/static/pricing1PageTemplate" class="link" style="font-size: 20px">Pricing for Companies</a></h3>
</div>
<div class="pricing-section group">
<div class="col span_1_of_3 pricing-1">
<h4 style="color:#000;font-weight:100;">
Free
</h4>
<div class="pricing-note">
Sign up now, no credit card needed
</div>
<div class="pricing-price">
<span class="pricing-amount">0</span>
<span class="pricing-unit">$</span>
</div>
<ul class="pricing-items">
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Unlimited public tradles</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Free 5-day backtesting</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Free historical data</p>
</li>
</ul>
<div class="section-footer">
<a class="cta buy1" href="#">Get Now</a>
</div>
</div>
<div class="col span_1_of_3 pricing-2">
<h4 style="color:#000;font-weight:100;">
Small
</h4>
<div class="pricing-note">
Start making some money
</div>
<div class="pricing-price">
<span class="pricing-amount">19</span>
<span class="pricing-unit">$/mo</span>
</div>
<ul class="pricing-items">
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">5 private tradles</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">A month of backtesting</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">1 tradle listed for sale</p>
</li>
</ul>
<div class="section-footer">
<a class="cta buy" data-buyitem="basic" href="pay/?$amount=$19">Buy Now</a>
</div>
</div>
<div class="col span_1_of_3 pricing-3">
<h4 style="color:#000;font-weight:100;">
Medium
</h4>
<div class="pricing-note">
For emerging money managers
</div>
<div class="pricing-price">
<span class="pricing-amount">99</span>
<span class="pricing-unit">$/mo</span>
</div>
<ul class="pricing-items">
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">25 private tradles</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">A year of backtesting</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">5 tradles listed for sale</p>
</li>
</ul>
<div class="section-footer">
<a class="cta buy" data-buyitem="pro" href="pay/?$amount=$99">Buy Now</a>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="pricing1PageTemplate">
<div class="section" id="section_bg">
<sidebar class="menuLeft"></sidebar>
<sidebar class="menuRight"></sidebar>
<div class="headerDiv" style="position:absolute;top:0px;width: 100%;">
<ul class="headerUl">
</ul>
</div>
<div class="section-content" style="margin:0 auto;">
<div class="title-block">
<h1 class="section-title">Pricing for Companies</h1>
<h3 class="section-title _2">Idea harvesting, PR, fundraising</h3>
</div>
<div class="pricing-section group">
<div class="col span_1_of_3 pricing-1">
<h4 style="color:#000;font-weight:100;">
Silver
</h4>
<div class="pricing-item-price-note">
What you get here is an absolute steal
</div>
<div class="pricing-price">
<span class="pricing-amount">1K</span>
<span class="pricing-unit">$/mo</span>
</div>
<ul class="pricing-items">
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Monitor clones of your tradle</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Top the sale of any clone you seeded</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Access to leaderboard of clones you seeded</p>
</li>
</ul>
<div class="section-footer">
<a class="cta buy1" href="pay/?$amount=$1,000">Buy Now</a>
</div>
</div>
<div class="col span_1_of_3 pricing-2">
<h4 style="color:#000;font-weight:100;">
Gold
</h4>
<div class="pricing-item-price-note">
Decrease fundraising costs
</div>
<div class="pricing-price">
<span class="pricing-amount">10K</span>
<span class="pricing-unit">$/mo</span>
</div>
<ul class="pricing-items">
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Your logo in tradle embeds</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Affiliate sales</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Feed packages</p>
</li>
</ul>
<div class="section-footer">
<a class="cta buy2" href="pay/?$amount=$10,000">Buy Now</a>
</div>
</div>
<div class="col span_1_of_3 pricing-3">
<h4 style="color:#000;font-weight:100;">
Platinum
</h4>
<div class="pricing-item-price-note">
For emerging quant funds
</div>
<div class="pricing-price">
<span class="pricing-amount">Call</span>
<span class="pricing-unit"></span>
</div>
<ul class="pricing-items">
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Full</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Algo trading</p>
</li>
<li class="pricing-item">
<i class="ui-icon-ok"></i>
<p class="pricing-title">Services</p>
</li>
</ul>
<div class="section-footer">
<a class="cta buy3" href="make/commerce/trading/Lead?$title=Get+a+callback&$editCols=description">Get a callback</a>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="advisorsPageTemplate">
<div class="section" id="section_bg">
<sidebar class="menuLeft"></sidebar>
<sidebar class="menuRight"></sidebar>
<div class="headerDiv" style="position:absolute;top:0px;width: 100%;">
<ul class="headerUl">
</ul>
</div>
<div class="section-content" style="margin:0 auto; padding-left:20px;padding-right:20px;">
<div class="title-block">
<h1 class="section-title">Our Advisors</h1>
<h3 class="section-title _2">Building the value for clients and shareholders with these industry experts</h3>
</div>
{{ for (var i = 0; i < advisors.length / 4; i++) { }}
<div class="pricing-section group">
{{ for (var j = 0; j < 4 && i * 4 + j < advisors.length; j++) { }}
{{ var advisor = advisors[i * 4 + j]; }}
<div class="col span_1_of_4 thin contact">
<div class="headshot">
<img src="{{= U.getExternalFileUrl(advisor.featured) }}" />
</div>
<span class="contact-title _2">{{= advisor.davDisplayName }}</span>
<span class="contact-title _3">
{{= advisor.title }}
{{= advisor.company ? '<br />@<br />' + advisor.company : '' }}
</span>
<ul class="section-footer" style="padding:0;">
{{ if (advisor.linkedin) { }}
<li class="contact-endpoint">
<a class="link" href="{{= advisor.linkedin }}" target="_blank">profile</a>
</li>
{{ } }}
{{ if (advisor.twitter) { }}
<li class="contact-endpoint">
<a class="link" href="http://twitter.com/{{= advisor.twitter }}" target="_blank">@{{= advisor.twitter }}</a>
</li>
{{ } }}
</ul>
</div>
{{ } }}
</div>
{{ } }}
</div>
</div>
</script>
<script type="text/template" id="bookmarkletIphonePageTemplate">
<style>
.bookmarkletPage-tableview-grouped {
background: #f2f2f2;
padding: 10px 10px 1px;
width: 300px;
}
.bookmarkletPage-section {
-webkit-text-size-adjust: none;
font-family: "Helvetica Neue", sans-serif;
background: #fff;
border-radius: 10px;
padding: 10px;
width: 280px;
border: 1px solid #d9d9d9;
margin-bottom: 10px;
overflow: hidden;
}
.bookmarkletPage a { color: #1389e5; }
.bookmarkletPage-section h1, .bookmarkletPage-section h2, .bookmarkletPage-section h3, .bookmarkletPage-section h4, .bookmarkletPage-section h5, .bookmarkletPage-section h6 {
font-size: 16px;
font-weight: bold;
}
.bookmarkletPage-section p {
margin-top: 10px;
}
.bookmarkletPage-section li {
margin-top: 10px;
}
</style>
<div class="bookmarkletPage-tableview-grouped">
<div class="bookmarkletPage-section">
<h1><strong>Installing the Aha! Bookmarklet for iPhone</strong></h1>
<p>Before you begin, be aware that it is much easier to install the iPhone bookmark in Firefox or Safari on your computer, and then synchronize your iPhone or iPod touch using iTunes.</p>
</div>
<div class="bookmarkletPage-section">
<h2>Step 1: Bookmark this page.</h2>
<p>Tap the middle icon below, then tap <strong>Add Bookmark</strong>, then tap Save.</p>
</div>
<div class="bookmarkletPage-section">
<h2>Step 2: Select the text and copy it.</h2>
<textarea style="width: 280px; height: 170px; margin-top: 10px;">javascript:void(function loadAha(d, params) {var e = d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//urbien.com/js/aha.js?r='+Math.random()*99999999 + '&' + (params || ''));d.body.appendChild(e)}(document, "aha=y"))</textarea>
<ol style="float: right; width: 280px; list-style-position: inside;">
<li>Tap inside.</li>
<li>Tap and hold for a bit, then release.</li>
<li>Tap <strong>Select All.</strong></li>
<li>Tap <strong>Copy.</strong></li>
<li>Tap <strong>Done</strong>.</li>
</ol>
</div>
<div class="bookmarkletPage-section">
<h2>Step 3: Edit the bookmark.</h2>
<p>1. Tap the Bookmarks button in the toolbar.</p>
<p>2. Tap <strong>Edit</strong>. Select the <strong>Aha!</strong> bookmark to edit.</p>
<p>3. Tap its URL, tap the <strong>x</strong> to clear it, tap-and-hold for the magnifying glass, then tap <strong>Paste</strong>.</p>
<p>4. Save the changes by tapping <strong>Done</strong>.</p>
</div>
<div class="bookmarkletPage-section">
<h2>Step 4: Installation complete.</h2>
<p>Installation should be complete!</p>
<p>Select the <strong>Aha!</strong> bookmark from your Bookmarks list to use it.</p>
<p>As soon as this can be made simpler, it will be. Thank you for your patience, and thank you for using Aha!</p>
</div>
</div>
</script>
<script type="text/template" id="bookmarkletAndroidPageTemplate">
<div style="margin: 0px 10px 0px 10px;">
<div>
<h1><strong>Using the Aha! Bookmarklet on Android</strong></h1>
<p class="red" style="font-weight:bold">First, make sure to install the Aha! bookmark on your desktop Chrome.</p>
<p>Then when you browse a page you'd like to Aha! or Huh?, tap the address bar and type in <strong>aha</strong>. See the image below for reference. Now click the starred bookmark that says <strong>Aha!</strong></p>
<p><img src="{{= G.serverName + '/images/aha/Android bookmark.png' }}" style="max-width:100%" />
</div>
</div>
</script>
<script type="text/template" id="bookmarkletDesktopPageTemplate">
<div style="text-align:center">
<h1>Drag the button below to your browser's bookmarks bar</h1>
<ul class="nav">
<li><a onclick="javascript:alert('Drag me to your bookmarks bar!'); return false;" href="javascript:void(function loadAha(d, params) {var e = d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//urbien.com/js/aha.js?r='+Math.random()*99999999 + '&' + (params || ''));d.body.appendChild(e)}(document, 'aha=y'))" style="font-size:30px">Aha!</a></li>
</ul>
</div>
</script>
<script type="text/template" id="bookmarkletDesktopStaticPageTemplate">
<div style="text-align:center">
<h1>Drag the button below to your browser's bookmarks bar</h1>
<ul class="nav">
<li><a onclick="javascript:alert('Drag me to your bookmarks bar!'); return false;" href="javascript:void(function loadAha(d, params) {var e = d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//urbien.com/js/aha.js?r='+Math.random()*99999999 + '&' + (params || ''));d.body.appendChild(e)}(document, 'aha=y'))" style="font-size:30px">Aha!</a></li>
</ul>
</div>
</script>
<script type="text/template" id="chatPageTemplate">
<!-- Chat page -->
<div id="{{= viewId }}" data-role="panel" data-display="overlay" style="z-index: 3000;" data-theme="a" data-position="right"></div>
<div id="{{= viewId + 'r' }}" data-role="panel" data-display="overlay" style="z-index: 3001;" data-theme="a" data-position="right"></div>
<div class="headerDiv"></div>
<div id="videoChat" class="videoChat">
<div id="localMedia"></div>
<div id="remoteMedia"></div>
</div>
<!--div class="headerMessageBar" style="opacity:0.7"></div-->
<!--div id="localVideoMonitor" style="z-index:100;width:100%;height:100%;left:0;top:0;position:fixed;">
</div-->
<div id="ringtoneHolder" style="visibility: hidden; display: none;">
</div>
<div id="inChatGoodies" style="width:100%;position:absolute; z-index: 100">
<div id="inChatBacklinks" style="position:absolute;padding:5px;top:130px;z-index:2000"></div>
<div id="inChatStats" style="position:relative;"></div>
</div>
<div id="chatDiv" role="main" data-role="content" class="chat-holder">
{{ if (!this.isWaitingRoom || this.isAgent) { }}
<div id="textChat"> <!--style="margin: 0px 10px 0px 10px" -->
<!--h3>Text Chat</h3-->
<div id="messages" width="100%">
</div>
</div>
{{ } }}
</div>
{{ if (!this.isWaitingRoom || this.isAgent) { }}
<div data-role="footer" data-position="fixed" data-theme="d" class="fieldcontain closespacing forceinline" style="z-index:3000">
<div class="floatleft">
<button id="chatCaptureBtn" data-theme="a" data-mini="true"><i class="ui-icon-camera"></i></button>
</div>
{{ if (this.isAgent) { }}
<div class="floatleft">
<button id="chatReqLocBtn" data-theme="a" data-mini="true"><i class="ui-icon-eye-open"></i></button>
</div>
{{ } }}
{{ if (this.isClient) { }}
<div class="floatleft" style="padding-top:0px">
<!--input type="radio" id="chatShareLocBtn" value="off" data-mini="true" />