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
|
@ -126,6 +126,12 @@
|
|||
if (context == "music" && item.Type == "Artist") {
|
||||
$('#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) {
|
||||
|
|
|
@ -317,6 +317,9 @@
|
|||
if (item.Type == "Artist") {
|
||||
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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue