mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Reports - icons and people fix
This commit is contained in:
parent
17e2a0c5b0
commit
b09097838c
2 changed files with 37 additions and 27 deletions
|
@ -50,7 +50,7 @@
|
|||
<a href="#" id="tabFilter" data-role="button" class="viewTabButton" data-tab="tabFilter">${TabFilter}</a>
|
||||
</div>
|
||||
|
||||
<div class="tabView viewTab">
|
||||
<div class="tabView viewTab" id="tabViewBox">
|
||||
<div id="selectReportGroupingBox">
|
||||
<label for="selectViewGrouping">${OptionReportGrouping}</label>
|
||||
<select id="selectReportGroup"></select>
|
||||
|
@ -89,7 +89,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tabFilter viewTab" id="tabFilterBox" style="display: none;">
|
||||
<div class="tabFilter viewTab" id="tabFilterBox">
|
||||
<fieldset data-role="controlgroup">
|
||||
<legend>
|
||||
${HeaderFilters}
|
||||
|
@ -184,6 +184,9 @@
|
|||
<input class="chkFeatureFilter" type="checkbox" name="chkTrailer" id="chkTrailer">
|
||||
<label for="chkTrailer">${OptionHasTrailer}</label>
|
||||
|
||||
<input class="chkFeatureFilter" type="checkbox" name="chkMissingTrailer" id="chkMissingTrailer">
|
||||
<label for="chkMissingTrailer">${OptionNoTrailer}</label>
|
||||
|
||||
<input class="chkFeatureFilter" type="checkbox" name="chkSpecialFeature" id="chkSpecialFeature">
|
||||
<label for="chkSpecialFeature">${OptionHasSpecialFeatures}</label>
|
||||
|
||||
|
|
|
@ -127,29 +127,29 @@
|
|||
break;
|
||||
case "StatusImage":
|
||||
if (rRow.HasLockData) {
|
||||
html += '<img src="css/images/editor/lock.png" />';
|
||||
html += '<img src="css/images/editor/lock.png" style="width:18px"/>';
|
||||
}
|
||||
if (rRow.IsUnidentified) {
|
||||
html += '<div class="libraryReportIndicator"><div class="ui-icon-alert ui-btn-icon-notext"></div></div>';
|
||||
}
|
||||
|
||||
if (!rRow.HasLocalTrailer && rRow.RowType === "Movie") {
|
||||
html += '<img src="css/images/editor/missingtrailer.png" title="Missing local trailer." />';
|
||||
html += '<img src="css/images/editor/missingtrailer.png" title="Missing local trailer." style="width:18px"/>';
|
||||
}
|
||||
|
||||
if (!rRow.HasImageTagsPrimary) {
|
||||
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingprimaryimage.png" title="Missing primary image." /></a>';
|
||||
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingprimaryimage.png" title="Missing primary image." style="width:18px"/></a>';
|
||||
}
|
||||
|
||||
if (!rRow.HasImageTagsBackdrop) {
|
||||
if (rRow.RowType !== "Episode" && rRow.RowType !== "Season" && rRow.MediaType !== "Audio" && rRow.RowType !== "TvChannel" && rRow.RowType !== "MusicAlbum") {
|
||||
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingbackdrop.png" title="Missing backdrop image." /></a>';
|
||||
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingbackdrop.png" title="Missing backdrop image." style="width:18px"/></a>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!rRow.HasImageTagsLogo) {
|
||||
if (rRow.RowType === "Movie" || rRow.RowType === "Trailer" || rRow.RowType === "Series" || rRow.RowType === "MusicArtist" || rRow.RowType === "BoxSet") {
|
||||
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missinglogo.png" title="Missing logo image." /></a>';
|
||||
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missinglogo.png" title="Missing logo image." style="width:18px"/></a>';
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -265,7 +265,6 @@
|
|||
|
||||
if (query.ReportView === "ReportData" || query.ReportView === "ReportStatistics") {
|
||||
$('#selectIncludeItemTypesBox', page).show();
|
||||
$('#tabFilterBox', page).show();
|
||||
$('#tabFilter', page).show();
|
||||
}
|
||||
else {
|
||||
|
@ -274,8 +273,6 @@
|
|||
$('#tabFilter', page).hide();
|
||||
}
|
||||
|
||||
if (query.ReportView === "ReportData" || query.ReportView === "ReportActivities") {
|
||||
|
||||
var pagingHtml = LibraryBrowser.getQueryPagingHtml({
|
||||
startIndex: query.StartIndex,
|
||||
limit: query.Limit,
|
||||
|
@ -285,7 +282,11 @@
|
|||
showLimit: false
|
||||
});
|
||||
|
||||
page.querySelector('.listTopPaging').innerHTML = pagingHtml;
|
||||
if (query.ReportView === "ReportData" || query.ReportView === "ReportActivities") {
|
||||
|
||||
|
||||
$('.listTopPaging', page).html(pagingHtml).trigger('create');
|
||||
// page.querySelector('.listTopPaging').innerHTML = pagingHtml;
|
||||
$('.listTopPaging', page).show();
|
||||
|
||||
$('.listBottomPaging', page).html(pagingHtml).trigger('create');
|
||||
|
@ -341,8 +342,13 @@
|
|||
});
|
||||
}
|
||||
else {
|
||||
$('.listTopPaging', page).hide();
|
||||
|
||||
$('.listTopPaging', page).html(pagingHtml).trigger('create');
|
||||
// page.querySelector('.listTopPaging').innerHTML = pagingHtml;
|
||||
|
||||
$('.listTopPaging', page).show();
|
||||
$('.listBottomPaging', page).hide();
|
||||
|
||||
$('.btnNextPage', page).hide();
|
||||
$('.btnPreviousPage', page).hide();
|
||||
|
||||
|
@ -370,7 +376,7 @@
|
|||
$('#GroupEpisodes', page).show();
|
||||
break;
|
||||
}
|
||||
|
||||
$('.viewPanel', page).refresh;
|
||||
}
|
||||
|
||||
function reloadItems(page) {
|
||||
|
@ -405,9 +411,6 @@
|
|||
}
|
||||
|
||||
function updateFilterControls(page) {
|
||||
|
||||
|
||||
|
||||
$('.chkStandardFilter', page).each(function () {
|
||||
|
||||
var filters = "," + (query.Filters || "");
|
||||
|
@ -451,6 +454,7 @@
|
|||
|
||||
$('#chkSubtitle', page).checked(query.HasSubtitles == true).checkboxradio('refresh');
|
||||
$('#chkTrailer', page).checked(query.HasTrailer == true).checkboxradio('refresh');
|
||||
$('#chkMissingTrailer', page).checked(query.HasTrailer == false).checkboxradio('refresh');
|
||||
$('#chkSpecialFeature', page).checked(query.HasSpecialFeature == true).checkboxradio('refresh');
|
||||
$('#chkThemeSong', page).checked(query.HasThemeSong == true).checkboxradio('refresh');
|
||||
$('#chkThemeVideo', page).checked(query.HasThemeVideo == true).checkboxradio('refresh');
|
||||
|
@ -490,7 +494,6 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends', "#libraryReportManagerPage", function () {
|
||||
|
@ -509,8 +512,6 @@
|
|||
loadGroupByFilters(page);
|
||||
reloadFiltersIfNeeded(page);
|
||||
reloadItems(page);
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('#selectViewType', page).on('change', function () {
|
||||
|
@ -524,8 +525,6 @@
|
|||
loadGroupByFilters(page);
|
||||
reloadFiltersIfNeeded(page);
|
||||
reloadItems(page);
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('#selectReportGroup', page).on('change', function () {
|
||||
|
@ -639,6 +638,14 @@
|
|||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('#chkMissingTrailer', this).on('change', function () {
|
||||
|
||||
query.StartIndex = 0;
|
||||
query.HasTrailer = this.checked ? false : null;
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
||||
$('#chkSpecialFeature', this).on('change', function () {
|
||||
|
||||
query.StartIndex = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue