-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-template.tmpl
57 lines (53 loc) · 1.84 KB
/
main-template.tmpl
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
{{ $videos := .VideoRecords }}
// Before uploading: Replace the escaped less than symbol with a less than symbol
// FIXME: This sucks ^^
var Template = function() { return `<?xml version="1.0" encoding="UTF-8" ?>
<document>
<!-- CSS like styling of elements. see https://developer.apple.com/library/prerelease/tvos/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/ITMLStyles.html -->
<head>
<style>
.descriptionText {
margin: 20;
color: #444440;
font-size: 36;
max-height: 500;
tv-text-max-lines: 12;
}
</style>
</head>
<catalogTemplate>
<banner>
<title>Philly CocoaHeads</title>
</banner>
<list>
<section>
<listItemLockup>
<title>Recent Videos</title>
<decorationLabel>{{.CountOfVideoRecords}}</decorationLabel>
<relatedContent>
<grid>
<section>
{{range $video := $videos}}
<lockup videoURL="{{$video.HDFile.Link}}">
<img src="{{$video.Pictures.ThumbnailSize.Link}}" width="500" height="282" />
</lockup>
{{end}}
</section>
</grid>
</relatedContent>
</listItemLockup>
<listItemLockup>
<title>About</title>
<relatedContent>
<header>
<title>About Philly CocooaHeads</title>
<description class="descriptionText">Philly CocoaHeads is Philadelphia's premier Apple-related programming group, a chapter of the worldwide CocoaHeads. All skill levels are welcome. The only requirement is an interest in Apple-related technologies and a moderate tolerance for geeking out. Please visit our website for more information on events and other community activities.
http://phillycocoa.org </description>
</header>
</relatedContent>
</listItemLockup>
</section>
</list>
</catalogTemplate>
</document>`
}