mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update dlna profiles
This commit is contained in:
parent
66a896e13d
commit
232f5dba67
8 changed files with 28 additions and 75 deletions
|
@ -532,7 +532,7 @@
|
|||
|
||||
var href = card.href || LibraryBrowser.getHref(item, context);
|
||||
var header = Globalize.translate('HeaderLatestFromChannel').replace('{0}', '<a href="' + href + '" style="outline:0;">' + item.Name + '</a>');
|
||||
html += '<h2 style="padding:.5em 1em;background:#222;margin:0;">' + header + '</h2>';
|
||||
html += '<h3 style="padding:.5em 1em;background:#222;margin:0;">' + header + '</h3>';
|
||||
|
||||
html += '<div class="groupingMenuScroller">';
|
||||
|
||||
|
@ -546,64 +546,7 @@
|
|||
});
|
||||
|
||||
html += '</div>';
|
||||
//html += '<a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-b ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a>';
|
||||
//html += '<div>';
|
||||
//html += '<ul data-role="listview">';
|
||||
|
||||
//var href = card.href || LibraryBrowser.getHref(item, context);
|
||||
//var header = Globalize.translate('HeaderLatestFromChannel').replace('{0}', '<a href="' + href + '">' + item.Name + '</a>');
|
||||
//html += '<li data-role="list-divider">' + header + '</li>';
|
||||
|
||||
//html += '</ul>';
|
||||
|
||||
//html += '<div class="groupingMenuScroller">';
|
||||
//html += '<ul data-role="listview">';
|
||||
|
||||
//html += latestItems.map(function (latestItem) {
|
||||
|
||||
// var itemHtml = '';
|
||||
|
||||
// href = LibraryBrowser.getHref(latestItem, context);
|
||||
// itemHtml += '<li class="ui-li-has-thumb"><a href="' + href + '">';
|
||||
|
||||
// var imgUrl;
|
||||
|
||||
// if (latestItem.ImageTags.Primary) {
|
||||
|
||||
// // Scaling 400w episode images to 80 doesn't turn out very well
|
||||
// var width = latestItem.Type == 'Episode' ? 160 : 80;
|
||||
// imgUrl = ApiClient.getScaledImageUrl(latestItem.Id, {
|
||||
// width: width,
|
||||
// tag: latestItem.ImageTags.Primary,
|
||||
// type: "Primary",
|
||||
// index: 0
|
||||
// });
|
||||
|
||||
// }
|
||||
// if (imgUrl) {
|
||||
// itemHtml += '<div class="listviewImage ui-li-thumb" style="background-image:url(\'' + imgUrl + '\');"></div>';
|
||||
// }
|
||||
|
||||
// itemHtml += '<h3>';
|
||||
// itemHtml += LibraryBrowser.getPosterViewDisplayName(latestItem);
|
||||
// itemHtml += '</h3>';
|
||||
|
||||
// var date = parseISO8601Date(latestItem.DateCreated, { toLocal: true });
|
||||
|
||||
// itemHtml += '<p>';
|
||||
// itemHtml += Globalize.translate('LabelAddedOnDate').replace('{0}', date.toLocaleDateString());
|
||||
// itemHtml += '</p>';
|
||||
|
||||
// itemHtml += '</a></li>';
|
||||
|
||||
// return itemHtml;
|
||||
|
||||
//}).join('');
|
||||
|
||||
//html += '</ul>';
|
||||
//html += '</div>';
|
||||
|
||||
//html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
$($.mobile.activePage).append(html);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
var html = '<div class="viewMenuBar ui-bar-b">';
|
||||
|
||||
if (($.browser.safari && window.navigator.standalone) || Dashboard.isRunningInCordova()) {
|
||||
html += '<a data-rel="back" data-role="none" href="#" class="headerButton headerButtonLeft headerBackButton"><div class="fa fa-arrow-circle-o-left"></div></a>';
|
||||
html += '<button type="button" data-role="none" onclick="history.back();" class="headerButton headerButtonLeft headerBackButton"><div class="fa fa-arrow-left"></div></button>';
|
||||
}
|
||||
|
||||
html += '<button type="button" data-role="none" title="Menu" class="headerButton dashboardMenuButton barsMenuButton headerButtonLeft">';
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
if (user.name) {
|
||||
|
||||
html += '<a class="headerButton headerButtonRight headerUserButton" href="#" onclick="Dashboard.showUserFlyout(this);">';
|
||||
html += '<button class="headerButton headerButtonRight headerUserButton" type="button" data-role="none" onclick="Dashboard.showUserFlyout(this);">';
|
||||
|
||||
if (user.imageUrl && AppInfo.enableUserImage) {
|
||||
|
||||
|
@ -59,12 +59,12 @@
|
|||
url += "&height=" + (userButtonHeight * Math.max(devicePixelRatio || 1, 2));
|
||||
}
|
||||
|
||||
html += '<div class="lazy" data-src="' + url + '" style="width:' + userButtonHeight + 'px;height:' + userButtonHeight + 'px;background-size:contain;background-repeat:no-repeat;background-position:center center;border-radius:1000px;"></div>';
|
||||
html += '<div class="lazy headerUserImage" data-src="' + url + '" style="width:' + userButtonHeight + 'px;height:' + userButtonHeight + 'px;"></div>';
|
||||
} else {
|
||||
html += '<div class="fa fa-user"></div>';
|
||||
}
|
||||
|
||||
html += '</a>';
|
||||
html += '</button>';
|
||||
}
|
||||
|
||||
if (user.canManageServer) {
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
$(document).on('headercreated', function (e) {
|
||||
|
||||
if (ConnectionManager.currentApiClient()) {
|
||||
$('<a class="headerButton headerButtonRight btnNotifications" href="#" title="Notifications"><div class="btnNotificationsInner">0</div></a>').insertAfter($('.headerSearchButton')).on('click', Notifications.showNotificationsFlyout);
|
||||
$('<button class="headerButton headerButtonRight btnNotifications" data-role="none" type="button" title="Notifications"><div class="btnNotificationsInner">0</div></button>').insertAfter($('.headerSearchButton')).on('click', Notifications.showNotificationsFlyout);
|
||||
|
||||
Notifications.updateNotificationCount();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue