mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
isolate .net specific methods in model project
This commit is contained in:
parent
2ba4a04377
commit
8cf9cab99e
7 changed files with 28 additions and 5 deletions
|
@ -127,6 +127,11 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.smallBackdropPosterItem .posterItemOverlayInner>div {
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.myLibraryPosterItem {
|
||||
width: 42%;
|
||||
|
|
|
@ -127,7 +127,9 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, getPageSizes())).trigger('create');
|
||||
var pagingHtml = LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, getPageSizes());
|
||||
|
||||
$('.listTopPaging', page).html(pagingHtml).trigger('create');
|
||||
|
||||
updateFilterControls(page);
|
||||
|
||||
|
@ -140,7 +142,7 @@
|
|||
coverImage: true
|
||||
});
|
||||
|
||||
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, getPageSizes());
|
||||
html += LibraryBrowser.getPagingHtml(pagingHtml);
|
||||
|
||||
$('#items', page).html(html).trigger('create').createPosterItemMenus();
|
||||
|
||||
|
|
|
@ -3,13 +3,27 @@
|
|||
function loadUser(page, user, loggedInUser) {
|
||||
|
||||
if (!loggedInUser.Configuration.IsAdministrator) {
|
||||
|
||||
$('#fldIsAdmin', page).hide();
|
||||
$('#featureAccessFields', page).hide();
|
||||
$('#accessControlDiv', page).hide();
|
||||
|
||||
} else {
|
||||
|
||||
$('#accessControlDiv', page).show();
|
||||
$('#fldIsAdmin', page).show();
|
||||
$('#featureAccessFields', page).show();
|
||||
$('.lnkEditUserPreferencesContainer', page).show();
|
||||
}
|
||||
|
||||
if (!loggedInUser.Configuration.IsAdministrator || !user.Id || user.Id == loggedInUser.Id) {
|
||||
|
||||
$('.lnkEditUserPreferencesContainer', page).hide();
|
||||
|
||||
} else {
|
||||
|
||||
$('.lnkEditUserPreferencesContainer', page).show();
|
||||
$('.lnkEditUserPreferences', page).attr('href', 'mypreferencesdisplay.html?userId=' + user.Id);
|
||||
}
|
||||
|
||||
Dashboard.setPageTitle(user.Name || Globalize.translate('AddUser'));
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div class="libraryViewNav scopedLibraryViewNav">
|
||||
<a href="index.html">${TabHome}</a>
|
||||
<a href="tvrecommended.html" class="ui-btn-active">${TabNextUp}</a>
|
||||
<a href="#" class="ui-btn-active">${TabNextUp}</a>
|
||||
<a href="favorites.html">${TabFavorites}</a>
|
||||
<a href="tvupcoming.html">${TabUpcoming}</a>
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<body>
|
||||
<div id="tvShowsPage" data-role="page" class="page libraryPage" data-theme="b">
|
||||
<div class="libraryViewNav scopedLibraryViewNav">
|
||||
<a href="tvrecommended.html">${TabSuggested}</a>
|
||||
<a href="tvlatest.html">${TabLatest}</a>
|
||||
<a href="#" class="ui-btn-active">${TabShows}</a>
|
||||
<a href="episodes.html">${TabEpisodes}</a>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<body>
|
||||
<div id="tvStudiosPage" data-role="page" class="page libraryPage" data-theme="b">
|
||||
<div class="libraryViewNav scopedLibraryViewNav">
|
||||
<a href="tvrecommended.html">${TabSuggested}</a>
|
||||
<a href="tvlatest.html">${TabLatest}</a>
|
||||
<a href="tvshows.html">${TabShows}</a>
|
||||
<a href="episodes.html">${TabEpisodes}</a>
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">${TabLibraryAccess}</a>
|
||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">${TabPassword}</a>
|
||||
</div>
|
||||
<p class="lnkEditUserPreferencesContainer">
|
||||
<a class="lnkEditUserPreferences" href="#" target="_blank">${ButtonEditOtherUserPreferences}</a>
|
||||
</p>
|
||||
|
||||
<form id="editUserProfileForm">
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li id="fldUserName">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue