mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
removed dead code
This commit is contained in:
parent
114a010bd4
commit
2a7324e3d7
@ -818,6 +818,16 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||
lines.push(item.ProductionYear || '');
|
||||
}
|
||||
|
||||
if (options.showRuntime) {
|
||||
|
||||
if (item.RunTimeTicks) {
|
||||
|
||||
lines.push(datetime.getDisplayRunningTime(item.RunTimeTicks));
|
||||
} else {
|
||||
lines.push('');
|
||||
}
|
||||
}
|
||||
|
||||
if (options.showChannelName) {
|
||||
|
||||
lines.push(item.ChannelName || '');
|
||||
|
@ -1807,74 +1807,16 @@
|
||||
|
||||
function getVideosHtml(items, user, limit, moreButtonClass) {
|
||||
|
||||
var html = '';
|
||||
|
||||
for (var i = 0, length = items.length; i < length; i++) {
|
||||
|
||||
if (limit && i >= limit) {
|
||||
break;
|
||||
}
|
||||
|
||||
var item = items[i];
|
||||
|
||||
var cssClass = "card backdropCard scalableCard backdropCard-scalable";
|
||||
|
||||
var href = "itemdetails.html?id=" + item.Id;
|
||||
|
||||
var onclick = item.PlayAccess == 'Full' ? ' onclick="MediaController.play(\'' + item.Id + '\'); return false;"' : "";
|
||||
|
||||
html += '<a class="' + cssClass + '" href="' + href + '"' + onclick + '>';
|
||||
|
||||
html += '<div class="cardBox">';
|
||||
html += '<div class="cardScalable">';
|
||||
|
||||
var imageTags = item.ImageTags || {};
|
||||
|
||||
var imgUrl;
|
||||
|
||||
if (imageTags.Primary) {
|
||||
|
||||
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
||||
maxWidth: 400,
|
||||
tag: imageTags.Primary,
|
||||
type: "primary"
|
||||
var html = cardBuilder.getCardsHtml({
|
||||
items: items,
|
||||
shape: "backdrop",
|
||||
preferThumb: true,
|
||||
showTitle: true,
|
||||
action: 'play',
|
||||
overlayText: true,
|
||||
showRuntime: true
|
||||
});
|
||||
|
||||
} else {
|
||||
imgUrl = "css/images/items/detail/video.png";
|
||||
}
|
||||
|
||||
html += '<div class="cardPadder cardPadder-backdrop"></div>';
|
||||
|
||||
html += '<div class="cardContent">';
|
||||
html += '<div class="cardImage lazy" data-src="' + imgUrl + '"></div>';
|
||||
|
||||
html += '<div class="innerCardFooter">';
|
||||
html += '<div class="cardText">' + item.Name + '</div>';
|
||||
html += '<div class="cardText">';
|
||||
if (item.RunTimeTicks != "") {
|
||||
html += datetime.getDisplayRunningTime(item.RunTimeTicks);
|
||||
}
|
||||
else {
|
||||
html += " ";
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
//cardFooter
|
||||
html += "</div>";
|
||||
|
||||
// cardContent
|
||||
html += '</div>';
|
||||
|
||||
// cardScalable
|
||||
html += '</div>';
|
||||
|
||||
// cardBox
|
||||
html += '</div>';
|
||||
|
||||
html += '</a>';
|
||||
}
|
||||
|
||||
if (limit && items.length > limit) {
|
||||
html += '<p style="margin: 0;padding-left:5px;"><button is="emby-button" type="button" class="raised more ' + moreButtonClass + '">' + Globalize.translate('ButtonMore') + '</button></p>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user