Skip to content

Commit d1e13ce

Browse files
author
dularion
committed
shorten upNext overview text & add fallback for fullTitle
1 parent c71c0cd commit d1e13ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-app/assets/javascripts/streama/templates/streama-video-player.tpl.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ <h3>{{options.videoMetaSubtitle}}</h3>
4343
</div>
4444
<div class="col-xs-8">
4545
<h4>{{'VIDEO.UPNEXT' | translate}}</h4>
46-
<h3>{{options.nextVideo.fullTitle}}</h3>
47-
<p>{{options.nextVideo.overview}}</p>
46+
<h3>{{options.nextVideo.fullTitle || options.nextVideo.title}}</h3>
47+
<p>{{options.nextVideo.overview.length > 150 ? options.nextVideo.overview.substring(0, 150) + '...' : options.nextVideo.overview}}</p>
4848

4949
<button class="play-button with-label" ng-click="next()"> <span class="play-label">play now</span> <i class="ion-ios-play"></i></button>
5050
</div>

0 commit comments

Comments
 (0)