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:
parent
fb64641b57
commit
72b7920f68
9 changed files with 56 additions and 34 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue