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

add notification services tab

This commit is contained in:
Luke Pulverenti 2015-04-05 23:47:01 -04:00
parent beb21adecf
commit 59eea6f602
8 changed files with 46 additions and 11 deletions

View file

@ -24,6 +24,11 @@
<a href="livetvsettings.html" data-role="button">${TabSettings}</a> <a href="livetvsettings.html" data-role="button">${TabSettings}</a>
</div> </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"> <div class="readOnlyContent">
<h2 class="pluginName"></h2> <h2 class="pluginName"></h2>

View file

@ -24,6 +24,13 @@
</div> </div>
</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="detailSectionHeader">${HeaderInstalledServices}</div>
<div class="installedPlugins"></div> <div class="installedPlugins"></div>
<br /> <br />

View file

@ -9,6 +9,11 @@
<div data-role="content"> <div data-role="content">
<div class="content-primary"> <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> <h2 class="notificationType" style="margin-bottom: 0;"></h2>
<form class="notificationSettingForm"> <form class="notificationSettingForm">
@ -31,7 +36,7 @@
<div> <div>
<div> <div>
<label for="selectUsers">${LabelSendNotificationToUsers}</label> <label for="selectUsers">${LabelSendNotificationToUsers}</label>
<select id="selectUsers" data-mini="true"> <select id="selectUsers">
<option value="All">${OptionAllUsers}</option> <option value="All">${OptionAllUsers}</option>
<option value="Admins">${OptionAdminUsers}</option> <option value="Admins">${OptionAdminUsers}</option>
<option value="Custom">${OptionCustomUsers}</option> <option value="Custom">${OptionCustomUsers}</option>
@ -67,10 +72,10 @@
</li> </li>
<li> <li>
<br /> <br />
<button type="submit" data-theme="b" data-icon="check" data-mini="true"> <button type="submit" data-theme="b" data-icon="check">
${ButtonSave} ${ButtonSave}
</button> </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} ${ButtonCancel}
</button> </button>
</li> </li>

View file

@ -9,6 +9,11 @@
<div data-role="content"> <div data-role="content">
<div class="content-primary"> <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"> <div class="readOnlyContent">
<p>${HeaderNotificationList}</p> <p>${HeaderNotificationList}</p>
<p>${HeaderSendNotificationHelp}</p> <p>${HeaderSendNotificationHelp}</p>

View file

@ -274,27 +274,33 @@
var context = getParameterByName('context'); var context = getParameterByName('context');
$('.syncTabs', page).hide();
$('.pluginTabs', page).hide();
$('.livetvTabs', page).hide();
$('.notificationsTabs', page).hide();
if (context == 'sync') { if (context == 'sync') {
$('.syncTabs', page).show(); $('.syncTabs', page).show();
$('.pluginTabs', page).hide();
$('.livetvTabs', page).hide();
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Sync'); page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Sync');
Dashboard.setPageTitle(Globalize.translate('TitleSync')); Dashboard.setPageTitle(Globalize.translate('TitleSync'));
} }
else if (context == 'livetv') { else if (context == 'livetv') {
$('.syncTabs', page).hide();
$('.pluginTabs', page).hide();
$('.livetvTabs', page).show(); $('.livetvTabs', page).show();
Dashboard.setPageTitle(Globalize.translate('TitleLiveTV')); Dashboard.setPageTitle(Globalize.translate('TitleLiveTV'));
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Live%20TV'); 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 { else {
$('.syncTabs', page).hide();
$('.pluginTabs', page).show(); $('.pluginTabs', page).show();
$('.livetvTabs', page).hide();
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Plugins'); page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Plugins');
Dashboard.setPageTitle(Globalize.translate('TitlePlugins')); Dashboard.setPageTitle(Globalize.translate('TitlePlugins'));

View file

@ -28,6 +28,9 @@
else if (context == 'livetv') { else if (context == 'livetv') {
categories.push('Live TV'); categories.push('Live TV');
} }
else if (context == 'notifications') {
categories.push('Notifications');
}
return categories; return categories;
} }
@ -85,6 +88,10 @@
Dashboard.setPageTitle(Globalize.translate('TitleLiveTV')); Dashboard.setPageTitle(Globalize.translate('TitleLiveTV'));
page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Live%20TV'); 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 () { }).on('pageshow', "#appServicesPage", function () {

View file

@ -82,7 +82,7 @@
// v4 Id F4EB2E8E // v4 Id F4EB2E8E
// default receiver chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID // default receiver chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID
var applicationID = "F4EB2E8E"; var applicationID = "69C59853";
// request session // request session
var sessionRequest = new chrome.cast.SessionRequest(applicationID); var sessionRequest = new chrome.cast.SessionRequest(applicationID);

View file

@ -14,7 +14,7 @@
var checkedHtml = isChecked ? ' checked="checked"' : ''; 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(''); }).join('');