Skip to content

Commit 67907d4

Browse files
committed
downloads: add thumbnails section back
1 parent c5ed67c commit 67907d4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

cds/modules/records/static/templates/cds_records/video/downloads.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,36 @@ <h3 class="cds-title-section-decoration bt bw-1 pt-10 mb-0">
8686
</div>
8787
<!-- /Other formats -->
8888

89+
<!-- Frame -->
90+
<div ng-if="(record | findMaster).frame.length > 0" class="cds-video-subformats bt bw-1 bc-gl pt-10 pb-10">
91+
<div class="row">
92+
<div class="col-md-12">
93+
<a class="f8 display-block" ng-click="showAllFrames = !showAllFrames">
94+
Thumbnails
95+
<p class="pull-right mb-0">
96+
<span ng-show="showAllFrames">
97+
<i class="fa f5 fa-angle-up"></i>
98+
</span>
99+
<span ng-show="!showAllFrames">
100+
<i class="fa f5 fa-angle-down"></i>
101+
</span>
102+
</p>
103+
</a>
104+
</div>
105+
</div>
106+
<div ng-show="(record | findMaster).frame.length > 0 && showAllFrames" class="cds-detail-download-box cds-detail-video-download-box mt-5">
107+
<div class="list-group">
108+
<a ng-repeat="file in (record | findMaster).frame" class="download-list-item-other" ng-href="{{ file.links.self | download }}" target="_blank">
109+
{{ file.key }}
110+
<span class="pull-right">
111+
<small>{{ file.size | bytesToHumanReadable }}</small>
112+
</span>
113+
</a>
114+
</div>
115+
</div>
116+
</div>
117+
<!-- /Frame -->
118+
89119
<!-- Subtitles -->
90120
<div ng-if="(record.metadata._files | getFilesByType: ['subtitle']).length > 0" class="cds-video-subformats bt bw-1 bc-gl pt-10 pb-10">
91121
<div class="row">

0 commit comments

Comments
 (0)