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

update tv recording page

This commit is contained in:
Luke Pulverenti 2013-12-12 23:06:38 -05:00
parent fb64641b57
commit 72b7920f68
9 changed files with 56 additions and 34 deletions

View file

@ -173,34 +173,22 @@
var views = [];
var showViewsHeader;
if (counts.MovieCount || counts.TrailerCount) {
showViewsHeader = true;
views.push({ id: "moviesView", name: "Movies", url: "moviesrecommended.html", img: "css/images/items/list/chapter.png", background: "#0094FF" });
}
if (counts.EpisodeCount || counts.SeriesCount) {
showViewsHeader = true;
views.push({ id: "tvView", name: "TV Shows", url: "tvrecommended.html", img: "css/images/items/list/collection.png", background: "#FF870F" });
}
if (counts.SongCount || counts.MusicVideoCount) {
showViewsHeader = true;
views.push({ id: "musicView", name: "Music", url: "musicrecommended.html", img: "css/images/items/list/audiocollection.png", background: "#6FBD45" });
}
if (counts.GameCount) {
showViewsHeader = true;
views.push({ id: "gamesView", name: "Games", url: "gamesrecommended.html", img: "css/images/items/list/gamecollection.png", background: "#E12026" });
}
if (showViewsHeader) {
$('#viewsHeader', page).show();
} else {
$('#viewsHeader', page).hide();
}
var html = '';
for (var i = 0, length = views.length; i < length; i++) {