forked from ndbroadbent/alpaca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol-upload-partial-download.html
More file actions
52 lines (50 loc) · 1.76 KB
/
control-upload-partial-download.html
File metadata and controls
52 lines (50 loc) · 1.76 KB
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
<script type="text/x-handlebars-template">
<tr class="template-download">
{{#if file.error}}
<td></td>
<td class="name">
<span>{{file.name}}</span>
</td>
<td class="size">
<span>{{file.size}}</span>
</td>
<td class="error" colspan="2">
Error:
{{file.error}}
</td>
{{else}}
<td class="preview">
{{#if file.thumbnailUrl}}
<a href="{{file.url}}" title="{{file.name}}" target="_blank">
<img src="{{file.thumbnailUrl}}">
</a>
{{/if}}
</td>
<td class="name">
<a href="{{file.url}}" title="{{file.name}}" target="_blank">{{file.name}}</a>
</td>
<td class="size"><span>{{file.size}}</span></td>
<td colspan="2"></td>
{{/if}}
<td class="text-center">
{{#if buttons}}
{{#each buttons}}
{{#if isDelete}}
<button class="delete btn btn-danger" data-file-index="{{../fileIndex}}" data-button-key="{{key}}">
<i class="glyphicon glyphicon-trash glyphicon-white"></i>
</button>
{{else}}
<button class="{{key}} btn {{buttonClass}}" data-file-index="{{../fileIndex}}" data-button-key="{{key}}">
{{#if iconClass}}
<i class="{{iconClass}}"></i>
{{/if}}
{{#if label}}
{{label}}
{{/if}}
</button>
{{/if}}
{{/each}}
{{/if}}
</td>
</tr>
</script>