mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
better game context
This commit is contained in:
parent
eb165180be
commit
045ad64eb5
4 changed files with 28 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center bottom;
|
background-position: center bottom;
|
||||||
background-color: #333;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transparentPosterItem .posterItemImage {
|
.transparentPosterItem .posterItemImage {
|
||||||
|
|
|
@ -91,6 +91,24 @@
|
||||||
<a href="musicgenres.html" data-role="button">Genres</a>
|
<a href="musicgenres.html" data-role="button">Genres</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="gameGenreTabs" class="itemTabs" style="display: none;">
|
||||||
|
<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">Game Systems</a>
|
||||||
|
<a href="gamegenres.html" data-role="button" class="ui-btn-active">Genres</a>
|
||||||
|
<a href="gamestudios.html" data-role="button">Studios</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="gameStudioTabs" class="itemTabs" style="display: none;">
|
||||||
|
<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">Game Systems</a>
|
||||||
|
<a href="gamegenres.html" data-role="button">Genres</a>
|
||||||
|
<a href="gamestudios.html" data-role="button" class="ui-btn-active">Studios</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="detailPageContent">
|
<div class="detailPageContent">
|
||||||
<div class="detailPagePrimaryInfo">
|
<div class="detailPagePrimaryInfo">
|
||||||
<div class="itemImageBlock">
|
<div class="itemImageBlock">
|
||||||
|
|
|
@ -126,6 +126,12 @@
|
||||||
if (context == "music" && item.Type == "Artist") {
|
if (context == "music" && item.Type == "Artist") {
|
||||||
$('#artistTabs', page).show();
|
$('#artistTabs', page).show();
|
||||||
}
|
}
|
||||||
|
if (context == "games" && item.Type == "Genre") {
|
||||||
|
$('#gameGenreTabs', page).show();
|
||||||
|
}
|
||||||
|
if (context == "games" && item.Type == "Studio") {
|
||||||
|
$('#gameStudioTabs', page).show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderTabs(page, item) {
|
function renderTabs(page, item) {
|
||||||
|
|
|
@ -317,6 +317,9 @@
|
||||||
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