mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated nuget
This commit is contained in:
parent
a8ef5994d8
commit
2ce5fc0c40
8 changed files with 51 additions and 20 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
ApiClient.getJSON(ApiClient.getUrl("Notifications/Types")).done(function (list) {
|
||||
|
||||
var html = '<ul data-role="listview" data-inset="true">';
|
||||
var html = '';
|
||||
|
||||
var lastCategory = "";
|
||||
|
||||
|
@ -16,29 +16,43 @@
|
|||
|
||||
if (i.Category != lastCategory) {
|
||||
lastCategory = i.Category;
|
||||
itemHtml += '<li data-role="list-divider">';
|
||||
|
||||
if (lastCategory) {
|
||||
itemHtml += '</div>';
|
||||
|
||||
}
|
||||
itemHtml += '<h1>';
|
||||
itemHtml += i.Category;
|
||||
itemHtml += '</li>';
|
||||
itemHtml += '</h1>';
|
||||
|
||||
itemHtml += '<div class="paperList" style="margin-bottom:2em;">';
|
||||
}
|
||||
|
||||
itemHtml += '<li>';
|
||||
itemHtml += '<a href="notificationsetting.html?type=' + i.Type + '">';
|
||||
itemHtml += '<h3>' + i.Name + '</h3>';
|
||||
itemHtml += '<a class="clearLink" href="notificationsetting.html?type=' + i.Type + '">';
|
||||
itemHtml += '<paper-icon-item>';
|
||||
|
||||
if (i.Enabled) {
|
||||
itemHtml += '<p style="color:#009F00;">' + Globalize.translate('LabelEnabled') + '</p>';
|
||||
} else {
|
||||
itemHtml += '<p style="color:#cc0000;">' + Globalize.translate('LabelDisabled') + '</p>';
|
||||
itemHtml += '<paper-fab class="listAvatar blue" icon="notifications-active" item-icon></paper-fab>';
|
||||
}
|
||||
else {
|
||||
itemHtml += '<paper-fab class="listAvatar" style="background-color:#999;" icon="notifications-off" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
itemHtml += '<paper-item-body two-line>';
|
||||
itemHtml += '<div>' + i.Name + '</div>';
|
||||
|
||||
itemHtml += '</paper-item-body>';
|
||||
|
||||
itemHtml += '<paper-icon-button icon="mode-edit"></paper-icon-button>';
|
||||
|
||||
itemHtml += '</paper-icon-item>';
|
||||
itemHtml += '</a>';
|
||||
itemHtml += '</li>';
|
||||
|
||||
return itemHtml;
|
||||
|
||||
}).join('');
|
||||
|
||||
html += '</ul>';
|
||||
html += '</div>';
|
||||
|
||||
$('.notificationList', page).html(html).trigger('create');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue