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

created a separate gallery page

This commit is contained in:
Luke Pulverenti 2013-05-31 21:48:41 -04:00
parent 92a6a23c56
commit 9f20ecb9ba
11 changed files with 143 additions and 84 deletions

View file

@ -1279,11 +1279,18 @@
url = "css/images/items/detail/video.png";
}
if (url) {
var identifierName = "id";
var identifierValue = item.Id;
html += "<img class='itemDetailImage' src='" + url + "' />";
if (item.Type == "Person" || item.Type == "Genre" || item.Type == "Studio" || item.Type == "Artist") {
identifierName = item.Type;
identifierValue = ApiClient.encodeName(item.Name);
}
var href = "itemgallery.html?" + identifierName + "=" + identifierValue;
html += "<a href='" + href + "'><img class='itemDetailImage' src='" + url + "' /></a>";
return html;
},
@ -1512,6 +1519,11 @@
var imageTags = item.ImageTags || {};
if (imageTags.Primary) {
return true;
}
if (imageTags.Banner) {
return true;
@ -1567,6 +1579,11 @@
var imageTags = item.ImageTags || {};
if (imageTags.Primary) {
html += LibraryBrowser.createGalleryImage(item, "Primary", imageTags.Primary);
}
if (imageTags.Banner) {
html += LibraryBrowser.createGalleryImage(item, "Banner", imageTags.Banner);