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:
parent
35eb92de60
commit
a67cfcd763
2 changed files with 13 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<h1 class="listHeader firstListHeader">Views</h1>
|
<h1 class="listHeader firstListHeader" id="viewsHeader" style="display: none;">Views</h1>
|
||||||
|
|
||||||
<div id="views">
|
<div id="views">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -169,21 +169,33 @@
|
||||||
|
|
||||||
var views = [];
|
var views = [];
|
||||||
|
|
||||||
|
var showViewsHeader;
|
||||||
|
|
||||||
if (counts.MovieCount || counts.TrailerCount) {
|
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" });
|
views.push({ id: "moviesView", name: "Movies", url: "moviesrecommended.html", img: "css/images/items/list/chapter.png", background: "#0094FF" });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counts.EpisodeCount || counts.SeriesCount) {
|
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" });
|
views.push({ id: "tvView", name: "TV Shows", url: "tvrecommended.html", img: "css/images/items/list/collection.png", background: "#FF870F" });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counts.SongCount || counts.MusicVideoCount) {
|
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" });
|
views.push({ id: "musicView", name: "Music", url: "musicrecommended.html", img: "css/images/items/list/audiocollection.png", background: "#6FBD45" });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counts.GameCount) {
|
if (counts.GameCount) {
|
||||||
|
showViewsHeader = true;
|
||||||
views.push({ id: "gamesView", name: "Games", url: "gamesrecommended.html", img: "css/images/items/list/gamecollection.png", background: "#E12026" });
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue