mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support channels with dlna
This commit is contained in:
parent
b89707f7b9
commit
27cc543b5f
13 changed files with 20 additions and 34 deletions
|
@ -63,12 +63,7 @@
|
|||
|
||||
var port = systemInfo.HttpServerPortNumber;
|
||||
|
||||
if (port == systemInfo.WebSocketPortNumber) {
|
||||
|
||||
$('#ports', page).html(Globalize.translate('LabelRunningOnPort').replace('{0}', '<b>' + port + '</b>'));
|
||||
} else {
|
||||
$('#ports', page).html(Globalize.translate('LabelRunningOnPorts').replace('{0}', '<b>' + port + '</b>').replace('{1}', '<b>' + systemInfo.WebSocketPortNumber + '</b>'));
|
||||
}
|
||||
$('#ports', page).html(Globalize.translate('LabelRunningOnPort').replace('{0}', '<b>' + port + '</b>'));
|
||||
|
||||
if (systemInfo.CanSelfRestart) {
|
||||
$('.btnRestartContainer', page).removeClass('hide');
|
||||
|
|
|
@ -90,7 +90,10 @@
|
|||
|
||||
Dashboard.getCurrentUser().done(function (user) {
|
||||
|
||||
if (user.Configuration.EnableContentDeletion &&
|
||||
if (item.Type == 'BoxSet') {
|
||||
$('#fldDelete', page).show();
|
||||
}
|
||||
else if (user.Configuration.EnableContentDeletion &&
|
||||
item.Type != "TvChannel" &&
|
||||
item.Type != "Genre" &&
|
||||
item.Type != "Studio" &&
|
||||
|
|
|
@ -133,9 +133,11 @@
|
|||
html += '<div class="cardPadder"></div>';
|
||||
html += '<a class="cardContent" href="#" data-ajax="false" data-haspw="' + user.HasPassword + '" data-username="' + user.Name + '" data-userid="' + user.Id + '">';
|
||||
|
||||
var imgUrl;
|
||||
|
||||
if (user.PrimaryImageTag) {
|
||||
|
||||
var imgUrl = ApiClient.getUserImageUrl(user.Id, {
|
||||
imgUrl = ApiClient.getUserImageUrl(user.Id, {
|
||||
width: 300,
|
||||
tag: user.PrimaryImageTag,
|
||||
type: "Primary"
|
||||
|
@ -147,7 +149,9 @@
|
|||
|
||||
var background = LibraryBrowser.getMetroColor(user.Id);
|
||||
|
||||
html += '<div class="cardImage" style="background-color:' + background + ';"></div>';
|
||||
imgUrl = 'css/images/logindefault.png';
|
||||
|
||||
html += '<div class="cardImage" style="background-image:url(\'' + imgUrl + '\');background-color:' + background + ';"></div>';
|
||||
}
|
||||
|
||||
html += '</a>';
|
||||
|
|
|
@ -222,12 +222,10 @@
|
|||
{ name: "Music", value: "music" },
|
||||
{ name: "TV shows", value: "tvshows" },
|
||||
{ name: "Books*", value: "books" },
|
||||
{ name: "Collections", value: "boxsets" },
|
||||
{ name: "Games*", value: "games" },
|
||||
{ name: "Home videos", value: "homevideos" },
|
||||
{ name: "Music videos", value: "musicvideos" },
|
||||
{ name: "Photos", value: "photos" },
|
||||
//{ name: "Trailers", value: "trailers" },
|
||||
{ name: "Adult videos", value: "adultvideos" },
|
||||
{ name: "Mixed movies & tv", value: "mixed" }
|
||||
];
|
||||
|
|
|
@ -110,6 +110,7 @@
|
|||
|
||||
function isAvailable(item, user) {
|
||||
|
||||
return false;
|
||||
return item.SupportsSync;
|
||||
}
|
||||
|
||||
|
|
|
@ -124,10 +124,8 @@
|
|||
|
||||
if (userId) {
|
||||
$('#userProfileNavigation', page).show();
|
||||
$('.serverNavigation', page).hide();
|
||||
} else {
|
||||
$('#userProfileNavigation', page).hide();
|
||||
$('.serverNavigation', page).show();
|
||||
}
|
||||
|
||||
Dashboard.getCurrentUser().done(function (loggedInUser) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue