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

update default theme endpoints

This commit is contained in:
Luke Pulverenti 2013-09-15 13:34:37 -04:00
parent 35eb92de60
commit a67cfcd763
2 changed files with 13 additions and 1 deletions

View file

@ -11,7 +11,7 @@
<tr>
<td>
<h1 class="listHeader firstListHeader">Views</h1>
<h1 class="listHeader firstListHeader" id="viewsHeader" style="display: none;">Views</h1>
<div id="views">
</div>

View file

@ -169,22 +169,34 @@
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++) {