mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add notification services tab
This commit is contained in:
parent
beb21adecf
commit
59eea6f602
@ -24,6 +24,11 @@
|
||||
<a href="livetvsettings.html" data-role="button">${TabSettings}</a>
|
||||
</div>
|
||||
|
||||
<div data-role="controlgroup" data-type="horizontal" class="localnav notificationsTabs" data-mini="true" style="display:none;">
|
||||
<a href="notificationsettings.html" data-role="button">${TabNotifications}</a>
|
||||
<a href="#" data-role="button" class="ui-btn-active">${TabServices}</a>
|
||||
</div>
|
||||
|
||||
<div class="readOnlyContent">
|
||||
|
||||
<h2 class="pluginName"></h2>
|
||||
|
@ -24,6 +24,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sectionTabs notificationsSectionTabs" style="display:none;">
|
||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||
<a href="notificationsettings.html" data-role="button">${TabNotifications}</a>
|
||||
<a href="#" data-role="button" class="ui-btn-active">${TabServices}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="detailSectionHeader">${HeaderInstalledServices}</div>
|
||||
<div class="installedPlugins"></div>
|
||||
<br />
|
||||
|
@ -9,6 +9,11 @@
|
||||
<div data-role="content">
|
||||
<div class="content-primary">
|
||||
|
||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||
<a href="notificationsettings.html" data-role="button" class="ui-btn-active">${TabNotifications}</a>
|
||||
<a href="appservices.html?context=notifications" data-role="button">${TabServices}</a>
|
||||
</div>
|
||||
|
||||
<h2 class="notificationType" style="margin-bottom: 0;"></h2>
|
||||
|
||||
<form class="notificationSettingForm">
|
||||
@ -31,7 +36,7 @@
|
||||
<div>
|
||||
<div>
|
||||
<label for="selectUsers">${LabelSendNotificationToUsers}</label>
|
||||
<select id="selectUsers" data-mini="true">
|
||||
<select id="selectUsers">
|
||||
<option value="All">${OptionAllUsers}</option>
|
||||
<option value="Admins">${OptionAdminUsers}</option>
|
||||
<option value="Custom">${OptionCustomUsers}</option>
|
||||
@ -67,10 +72,10 @@
|
||||
</li>
|
||||
<li>
|
||||
<br />
|
||||
<button type="submit" data-theme="b" data-icon="check" data-mini="true">
|
||||
<button type="submit" data-theme="b" data-icon="check">
|
||||
${ButtonSave}
|
||||
</button>
|
||||
<button type="button" onclick="Dashboard.navigate('notificationsettings.html');" data-icon="delete" data-mini="true">
|
||||
<button type="button" onclick="Dashboard.navigate('notificationsettings.html');" data-icon="delete">
|
||||
${ButtonCancel}
|
||||
</button>
|
||||
</li>
|
||||
|
@ -9,6 +9,11 @@
|
||||
<div data-role="content">
|
||||
<div class="content-primary">
|
||||
|
||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||
<a href="#" data-role="button" class="ui-btn-active">${TabNotifications}</a>
|
||||
<a href="appservices.html?context=notifications" data-role="button">${TabServices}</a>
|
||||
</div>
|
||||
|
||||
<div class="readOnlyContent">
|
||||
<p>${HeaderNotificationList}</p>
|
||||
<p>${HeaderSendNotificationHelp}</p>
|
||||
|
@ -274,27 +274,33 @@
|
||||
|
||||
var context = getParameterByName('context');
|
||||
|
||||
$('.syncTabs', page).hide();
|
||||
$('.pluginTabs', page).hide();
|
||||
$('.livetvTabs', page).hide();
|
||||
$('.notificationsTabs', page).hide();
|
||||
|
||||
if (context == 'sync') {
|
||||
$('.syncTabs', page).show();
|
||||
$('.pluginTabs', page).hide();
|
||||
$('.livetvTabs', page).hide();
|
||||
|
||||
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Sync');
|
||||
Dashboard.setPageTitle(Globalize.translate('TitleSync'));
|
||||
}
|
||||
else if (context == 'livetv') {
|
||||
|
||||
$('.syncTabs', page).hide();
|
||||
$('.pluginTabs', page).hide();
|
||||
$('.livetvTabs', page).show();
|
||||
|
||||
Dashboard.setPageTitle(Globalize.translate('TitleLiveTV'));
|
||||
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Live%20TV');
|
||||
}
|
||||
else if (context == 'notifications') {
|
||||
|
||||
$('.notificationsTabs', page).show();
|
||||
|
||||
Dashboard.setPageTitle(Globalize.translate('TitleNotifications'));
|
||||
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Notifications');
|
||||
}
|
||||
else {
|
||||
$('.syncTabs', page).hide();
|
||||
$('.pluginTabs', page).show();
|
||||
$('.livetvTabs', page).hide();
|
||||
|
||||
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Plugins');
|
||||
Dashboard.setPageTitle(Globalize.translate('TitlePlugins'));
|
||||
|
@ -28,6 +28,9 @@
|
||||
else if (context == 'livetv') {
|
||||
categories.push('Live TV');
|
||||
}
|
||||
else if (context == 'notifications') {
|
||||
categories.push('Notifications');
|
||||
}
|
||||
|
||||
return categories;
|
||||
}
|
||||
@ -85,6 +88,10 @@
|
||||
Dashboard.setPageTitle(Globalize.translate('TitleLiveTV'));
|
||||
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Live%20TV');
|
||||
}
|
||||
else if (context == 'notifications') {
|
||||
Dashboard.setPageTitle(Globalize.translate('TitleNotifications'));
|
||||
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Notifications');
|
||||
}
|
||||
|
||||
}).on('pageshow', "#appServicesPage", function () {
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
||||
// v4 Id F4EB2E8E
|
||||
// default receiver chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
|
||||
|
||||
var applicationID = "F4EB2E8E";
|
||||
var applicationID = "69C59853";
|
||||
|
||||
// request session
|
||||
var sessionRequest = new chrome.cast.SessionRequest(applicationID);
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
var checkedHtml = isChecked ? ' checked="checked"' : '';
|
||||
|
||||
return '<label for="' + id + '">' + u.Name + '</label><input class="' + cssClass + '" type="checkbox" data-itemid="' + u.Id + '" data-mini="true" id="' + id + '"' + checkedHtml + ' />';
|
||||
return '<label for="' + id + '">' + u.Name + '</label><input class="' + cssClass + '" type="checkbox" data-itemid="' + u.Id + '" id="' + id + '"' + checkedHtml + ' />';
|
||||
|
||||
}).join('');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user