/
detail.handlebars
195 lines (181 loc) · 5.76 KB
/
detail.handlebars
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
<div class="detailView">
<div class="detail expand{{#if thumbnail}} with-image{{/if}}">
{{#if thumbnail}}
<div class="cover-photo" style="background-image: url({{{image thumbnail}}});"></div>
<div class="cover-photo" style="background-image: url({{{image image}}});"></div>
<div class="gradient"></div>
{{else}}
<div class="white-background"></div>
{{/if}}
<div class="detail-inner">
{{#metadata}}
{{#if hasDescription}}<h1>{{#if title}}{{title}}{{else}}Untitled{{/if}}</h1>{{/if}}
{{#if year}}<span class="year">{{year}}</span>{{/if}}
{{#if genre}}<span class="genre">{{genre}}</span>{{/if}}
{{#unless hasDescription}}<h1>{{#if title}}{{title}}{{else}}Untitled{{/if}}</h1>{{/unless}}
{{#if album}}<span class="album">{{album}}</span>{{/if}}
{{#if track}}<span class="track">#{{track}}</span>{{/if}}
{{#if artist}}<span class="artist small">{{artist}}</span>{{/if}}
{{/metadata}}
</div>
<div class="clear"></div>
</div>
{{#if media_files}}
{{> player}}
{{/if}}
<div class="clear"></div>
{{#if hasVideo}}
<h1>Video</h1>
<video controls>
<source src="{{videoPath}}" />
</video>
{{/if}}
{{#if is_uploading}}
<div class="content uploading">
<span></span>
<div class="progress-bar hidden"><div></div></div>
</div>
<a class="clear button red expand cancelUpload" data-id="{{uuid}}">Cancel Upload</a>
{{/if}}
{{#if production}}
{{#if start_allowed}}
<a data-api-url="/production/{{uuid}}/start" data-method="post" class="clear button green expand startProduction">Start Production</a>
<div class="content processing hidden"></div>
{{else}}
{{#unless change_allowed}}
<div class="content processing">Processing</div>
{{/unless}}
{{/if}}
{{/if}}
{{#if hasDetails}}
<h1>Details</h1>
<ul>
{{#if metadata.summary}}<li><a href="{{baseURL}}/{{uuid}}/summary" class="arrow"><span></span>Summary</a></li>{{/if}}
{{#if image}}
<li><a href="{{{image image}}}" class="share"><span></span>Cover Photo</a></li>
{{/if}}
{{#metadata}}
{{#if publisher}}<li><label>Publisher <span class="light">{{publisher}}</span></label></li>{{/if}}
{{#if url}}
<li><a href="{{url}}" class="share"><span></span>URL <span class="light">{{{format-url url}}}</span></a></li>
{{/if}}
{{#if hasLicense}}
<li>
{{#if license_url}}
<a href="{{license_url}}" class="share"><span></span>
{{else}}
<label>
{{/if}}
License <span class="light">{{#if license}}{{license}}{{else}}{{{format-url license_url}}}{{/if}}</span>
{{#if license_url}}
</a>
{{else}}
</label>
{{/if}}
</li>
{{/if}}
{{#if tags}}
<li><label>Tags <span class="light">{{tags}}</span></label></li>
{{/if}}
{{/metadata}}
</ul>
{{/if}}
<h1>Output Files</h1>
<ul>
{{#if output_files}}
{{#if output_basename}}
<li>
<label>Filename <small class="light">{{output_basename}}</small></label>
</li>
{{/if}}
{{#each output_files}}
{{#if size_string}}
<li class="wide">
{{#if size_string}}<span class="right light"><small>{{size_string}}</small></span>{{/if}}
<label class="left">{{title}}{{#if detail}} <small class="light">{{detail}}</small>{{/if}}</label>
</li>
{{else}}
<li>
<label>{{title}}{{#if detail}} <small class="light">{{detail}}</small>{{/if}}</label>
</li>
{{/if}}
{{/each}}
{{else}}
<li>
<label class="info">
<span></span>
No Output Files are set
<div class="hidden popover top justify" data-position="top">
<h1>Missing Output Files</h1>
Add at least one output file to be able to start the production.
</div>
</label>
</li>
{{/if}}
</ul>
{{#if hasChapters}}
<h1>Chapter Marks</h1>
<ul>
{{#each chapters}}
<li>
<label>
<small class="light">{{start}}</small> {{title}}
</label>
</li>
{{/each}}
</ul>
{{/if}}
{{#if input_file}}
<h1>Input Source{{#if service_display_type}} - {{service_display_type}}{{/if}}</h1>
<ul>
<li>
<label>
{{#if service_display_name}}
<span class="light">{{service_display_name}}</span>
<small>{{input_file}}</small>
{{else}}
{{input_file}}
{{/if}}
</label>
</li>
</ul>
{{/if}}
{{#if outgoing_services}}
<h1>Outgoing File Transfers</h1>
<ul>
{{#each outgoing_services}}
<li>
{{#if result_urls}}
<a href="{{result_urls.0.}}" class="share"><span></span><span class="light">{{display_type}}</span> <small>{{display_name}}</small></a>
{{else}}
<label><span class="light">{{display_type}}</span> <small>{{display_name}}</small></label>
{{/if}}
</li>
{{/each}}
</ul>
{{/if}}
{{#if metadata.subtitle}}
<h1>Subtitle</h1>
<div class="content">
{{metadata.subtitle}}
</div>
{{/if}}
{{#if hasAlgorithms}}
<h1>Algorithms</h1>
<ul>
{{#each algorithms}}
<li class="wide">
<label class="show-popover {{#if select}}left{{else}}info{{/if}}">
{{#if select}}
<span class="right light bold">{{value_string}}</span>
{{else}}
<span></span>
{{/if}}
{{short_display_name}}
{{> algorithm-popover}}
</label>
</li>
{{/each}}
</ul>
{{/if}}
</div>