-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.stache
91 lines (77 loc) · 3.45 KB
/
index.stache
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
<header>
<img class="co-brand-header" src="./images/image-header.svg" />
</header>
{{#unless hashTag}}
<form class="init">
<div class="form-group">
<label for="hash-tag" class="form-label">Hashtag</label>
<input type="text" class="form-control" id="hash-tag" ($focus)="selectText" value="SIMensExpo" />
</div>
<div class="form-group">
<label for="embed-markup" class="form-label">Embed Markup</label>
<textarea rows="7" class="form-control" id="embed-markup" ($focus)="selectText"><a href="http://bithub.com/embed?hubId=1&tenant=benevolent_foliage_3723&decision=approved&view=public" class="bithub-embed">Harness Digital Marketing Embed</a><script src="http://bithub.com/embed.js"></script></textarea>
<br/>
<button type="button" class="btn btn-default" ($click)="showHub">Let's Do This!</button>
</div>
</form>
{{else}}
<div id="main">
<div id="starred">
<div>Event Sponsors</div>
<bithub-starred {starred-url}="starredURL" />
</div>
<div id="bigbit">
{{#approvedBit}}
{{!-- todo: should be partial template / own component --}}
<div class="current-bit">
<img src="{{images.0.url}}" />
<div class="content">
<div class="header">
<i class="fa fa-instagram"></i>
<i class="fa fa-twitter"></i>
<span>#{{{hashTag}}}</span>
</div>
<hr/>
<div class="inner-content-wrap">
{{{title}}}
</div>
<hr/>
<div class="author-wrap">
{{#if author.avatar_url}}
<img src="{{author.avatar_url}}"/>
{{/if}}
<b>{{author.id}}</b>
<i class="fa fa-{{feed_name}}"></i>
<div class="updated">{{updatedAt}}</div>
</div>
</div>
</div>
{{/approvedBit}}
{{#nextApproved}}
<div class="next-bit">
<img src="{{images.0.url}}" />
<div class="content">
<div class="header">
<i class="fa fa-instagram"></i>
<i class="fa fa-twitter"></i>
<span>#{{{hashTag}}}</span>
</div>
<hr/>
<div class="inner-content-wrap">
{{{title}}}
</div>
<hr/>
<div class="author-wrap">
{{#if author.avatar_url}}
<img src="{{author.avatar_url}}"/>
{{/if}}
<b>{{author.id}}</b>
<i class="fa fa-{{feed_name}}"></i>
<div class="updated">{{updatedAt}}</div>
</div>
</div>
</div>
{{/nextApproved}}
</div>
</div>
{{/unless}}