1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

improved games display

This commit is contained in:
Luke Pulverenti 2013-04-24 16:28:42 -04:00
parent 9ffcf2bba9
commit 097653775a
21 changed files with 87 additions and 269 deletions

View file

@ -65,11 +65,11 @@
Dashboard.hideLoadingMsg();
});
}
function getContext(item) {
// should return either movies, tv, music or games
if (item.Type == "Episode" || item.Type == "Series" || item.Type == "Season") {
return "tv";
}
@ -105,6 +105,10 @@
enableCustomHeader(page, "Music");
$('#standardLogo', page).hide();
}
else if (item.MediaType == "Game") {
enableCustomHeader(page, "Games");
$('#standardLogo', page).hide();
}
else {
$('.libraryPageHeader', page).hide();
$('#standardLogo', page).show();
@ -128,6 +132,12 @@
$('#movieTabs', page).hide();
}
if (item.MediaType == "Game") {
$('#gameTabs', page).show();
} else {
$('#gameTabs', page).hide();
}
if (item.Type == "BoxSet") {
$('#boxsetTabs', page).show();
} else {
@ -278,14 +288,14 @@
function renderUserDataIcons(page, item) {
$('#itemRatings', page).html(LibraryBrowser.getUserDataIconsHtml(item));
}
function renderThemeSongs(page, item, result) {
if (result.Items.length) {
$('#themeSongsCollapsible', page).show();
$('#themeSongsContent', page).html(LibraryBrowser.getSongTableHtml(result.Items, {})).trigger('create');
$('#themeSongsContent', page).html(LibraryBrowser.getSongTableHtml(result.Items, { showArtist: true, showAlbum: true })).trigger('create');
}
}