mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
game context on detail page
This commit is contained in:
parent
d95f783686
commit
358830d050
2 changed files with 33 additions and 23 deletions
|
@ -116,7 +116,7 @@
|
|||
enableCustomHeader(page, "Music");
|
||||
$('#standardLogo', page).hide();
|
||||
}
|
||||
else if (item.MediaType == "Game") {
|
||||
else if (item.MediaType == "Game" || item.Type == "GamePlatform") {
|
||||
enableCustomHeader(page, "Games");
|
||||
$('#standardLogo', page).hide();
|
||||
}
|
||||
|
@ -125,44 +125,38 @@
|
|||
$('#standardLogo', page).show();
|
||||
}
|
||||
|
||||
$('.itemTabs', page).hide();
|
||||
|
||||
if (item.Type == "MusicAlbum") {
|
||||
$('#albumTabs', page).show();
|
||||
} else {
|
||||
$('#albumTabs', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Audio") {
|
||||
$('#songTabs', page).show();
|
||||
} else {
|
||||
$('#songTabs', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Movie") {
|
||||
$('#movieTabs', page).show();
|
||||
} else {
|
||||
$('#movieTabs', page).hide();
|
||||
}
|
||||
|
||||
if (item.MediaType == "Game") {
|
||||
$('#gameTabs', page).show();
|
||||
} else {
|
||||
$('#gameTabs', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "GamePlatform") {
|
||||
$('#gameSystemTabs', page).show();
|
||||
}
|
||||
|
||||
if (item.Type == "BoxSet") {
|
||||
$('#boxsetTabs', page).show();
|
||||
} else {
|
||||
$('#boxsetTabs', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Trailer") {
|
||||
$('#trailerTabs', page).show();
|
||||
} else {
|
||||
$('#trailerTabs', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Episode" || item.Type == "Season" || item.Type == "Series") {
|
||||
$('#tvShowsTabs', page).show();
|
||||
} else {
|
||||
$('#tvShowsTabs', page).hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -275,9 +269,13 @@
|
|||
$('#itemSongs', page).html(LibraryBrowser.getSongTableHtml(result.Items, { showArtist: true })).trigger('create');
|
||||
|
||||
} else {
|
||||
|
||||
var shape = "poster";
|
||||
|
||||
var html = LibraryBrowser.getPosterDetailViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true
|
||||
useAverageAspectRatio: true,
|
||||
shape: shape
|
||||
});
|
||||
|
||||
$('#childrenContent', page).html(html);
|
||||
|
@ -297,6 +295,9 @@
|
|||
else if (item.Type == "MusicAlbum") {
|
||||
$('#childrenTitle', page).html('Tracks (' + item.ChildCount + ')');
|
||||
}
|
||||
else if (item.Type == "GamePlatform") {
|
||||
$('#childrenTitle', page).html('Games (' + item.ChildCount + ')');
|
||||
}
|
||||
else {
|
||||
$('#childrenTitle', page).html('Items (' + item.ChildCount + ')');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue