mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use regular detail page for game systems
This commit is contained in:
parent
045ad64eb5
commit
d95f783686
3 changed files with 3 additions and 101 deletions
|
@ -1,45 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title></title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="gamesystemPage" data-role="page" class="page libraryPage noLogoPage" data-theme="a">
|
|
||||||
<h1 class="libraryPageHeader"><a href="index.html" class="imageLink">
|
|
||||||
<img src="css/images/mblogoicon.png"></a>Games</h1>
|
|
||||||
<div data-role="content">
|
|
||||||
|
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="libraryViewNav" data-mini="true">
|
|
||||||
<a href="gamesrecommended.html" data-role="button">Suggested</a>
|
|
||||||
<a href="games.html" data-role="button">Games</a>
|
|
||||||
<a href="gamesystems.html" data-role="button" class="ui-btn-active">Game Systems</a>
|
|
||||||
<a href="gamegenres.html" data-role="button">Genres</a>
|
|
||||||
<a href="gamestudios.html" data-role="button">Studios</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="detailPagePrimaryInfo">
|
|
||||||
<div class="itemImageBlock">
|
|
||||||
<div id="itemMedia" style="position: relative;">
|
|
||||||
<div id="itemImage"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="itemDetailBlock">
|
|
||||||
|
|
||||||
<h1 id="itemName" class="detailPageName"></h1>
|
|
||||||
<p id="itemMiscInfo" class="itemMiscInfo"></p>
|
|
||||||
<p id="itemTagline" style="font-style: italic;"></p>
|
|
||||||
<p id="itemOverview"></p>
|
|
||||||
<p id="itemRatings"></p>
|
|
||||||
<p id="itemCommunityRating"></p>
|
|
||||||
|
|
||||||
<p id="itemGenres"></p>
|
|
||||||
<p id="itemStudios"></p>
|
|
||||||
<p id="itemLinks"></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,53 +0,0 @@
|
||||||
|
|
||||||
(function ($, document, LibraryBrowser) {
|
|
||||||
|
|
||||||
function reload(page) {
|
|
||||||
|
|
||||||
var id = getParameterByName('id');
|
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
ApiClient.getItem(Dashboard.getCurrentUserId(), id).done(function (item) {
|
|
||||||
|
|
||||||
var name = item.Name;
|
|
||||||
|
|
||||||
$('#itemImage', page).html(LibraryBrowser.getDetailImageHtml(item));
|
|
||||||
|
|
||||||
Dashboard.setPageTitle(name);
|
|
||||||
|
|
||||||
$('#itemName', page).html(name);
|
|
||||||
|
|
||||||
renderDetails(page, item);
|
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function renderDetails(page, item) {
|
|
||||||
|
|
||||||
LibraryBrowser.renderOverview($('#itemOverview', page), item);
|
|
||||||
|
|
||||||
if (item.CommunityRating) {
|
|
||||||
$('#itemCommunityRating', page).html(LibraryBrowser.getStarRatingHtml(item)).show().attr('title', item.CommunityRating);
|
|
||||||
} else {
|
|
||||||
$('#itemCommunityRating', page).hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#itemMiscInfo', page).html(LibraryBrowser.getMiscInfoHtml(item));
|
|
||||||
|
|
||||||
LibraryBrowser.renderGenres($('#itemGenres', page), item, "games");
|
|
||||||
LibraryBrowser.renderStudios($('#itemStudios', page), item, "games");
|
|
||||||
renderUserDataIcons(page, item);
|
|
||||||
LibraryBrowser.renderLinks($('#itemLinks', page), item);
|
|
||||||
}
|
|
||||||
|
|
||||||
function renderUserDataIcons(page, item) {
|
|
||||||
$('#itemRatings', page).html(LibraryBrowser.getUserDataIconsHtml(item));
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).on('pageshow', "#gamesystemPage", function () {
|
|
||||||
reload(this);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
})(jQuery, document, LibraryBrowser);
|
|
|
@ -305,6 +305,9 @@
|
||||||
if (item.Type == "MusicAlbum") {
|
if (item.Type == "MusicAlbum") {
|
||||||
return "itemdetails.html?id=" + id;
|
return "itemdetails.html?id=" + id;
|
||||||
}
|
}
|
||||||
|
if (item.Type == "GamePlatform") {
|
||||||
|
return "itemdetails.html?id=" + id;
|
||||||
|
}
|
||||||
if (item.Type == "Genre") {
|
if (item.Type == "Genre") {
|
||||||
return "itembynamedetails.html?genre=" + encodeName(item.Name) + "&context=" + itemByNameContext;
|
return "itembynamedetails.html?genre=" + encodeName(item.Name) + "&context=" + itemByNameContext;
|
||||||
}
|
}
|
||||||
|
@ -317,9 +320,6 @@
|
||||||
if (item.Type == "Artist") {
|
if (item.Type == "Artist") {
|
||||||
return "itembynamedetails.html?artist=" + encodeName(item.Name) + "&context=" + (itemByNameContext || "music");
|
return "itembynamedetails.html?artist=" + encodeName(item.Name) + "&context=" + (itemByNameContext || "music");
|
||||||
}
|
}
|
||||||
if (item.Type == "GamePlatform") {
|
|
||||||
return "gamesystem.html?id=" + id;
|
|
||||||
}
|
|
||||||
|
|
||||||
return item.IsFolder ? (id ? "itemList.html?parentId=" + id : "#") : "itemdetails.html?id=" + id;
|
return item.IsFolder ? (id ? "itemList.html?parentId=" + id : "#") : "itemdetails.html?id=" + id;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue