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

added movie and tv genre pages

This commit is contained in:
Luke Pulverenti 2013-04-11 15:36:50 -04:00
parent ceb6dffddb
commit 6f3b88353e
17 changed files with 294 additions and 90 deletions

View file

@ -103,13 +103,22 @@
if (item.CommunityRating) {
html += '<p>' + LibraryBrowser.getFiveStarRatingHtml(item) + '</p>';
}
var childText;
if (item.Type == "BoxSet") {
var movies = item.ChildCount == 1 ? "1 Movie" : item.ChildCount + " Movies";
childText = item.ChildCount == 1 ? "1 Movie" : item.ChildCount + " Movies";
html += '<p class="itemMiscInfo">' + movies + '</p>';
} else {
html += '<p class="itemMiscInfo">' + childText + '</p>';
}
else if (item.Type == "Genre" || item.Type == "Studio" || item.Type == "Person") {
childText = item.ChildCount == 1 ? "1 " + options.countNameSingular : item.ChildCount + " " + options.countNamePlural;
html += '<p class="itemMiscInfo">' + childText + '</p>';
}
else {
html += '<p class="itemMiscInfo">' + LibraryBrowser.getMiscInfoHtml(item, false) + '</p>';
}