mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
display more info link in notifications
This commit is contained in:
parent
a276d5521c
commit
dd82890064
1 changed files with 12 additions and 8 deletions
|
@ -92,11 +92,11 @@
|
|||
$('.btnMarkReadContainer').hide();
|
||||
return;
|
||||
}
|
||||
|
||||
if (notifications.filter(function(n) {
|
||||
|
||||
if (notifications.filter(function (n) {
|
||||
|
||||
return !n.IsRead;
|
||||
|
||||
|
||||
}).length) {
|
||||
$('.btnMarkReadContainer').show();
|
||||
} else {
|
||||
|
@ -114,7 +114,7 @@
|
|||
|
||||
}
|
||||
|
||||
elem.html(html);
|
||||
elem.html(html).trigger('create');
|
||||
}
|
||||
|
||||
function getNotificationHtml(notification) {
|
||||
|
@ -130,7 +130,7 @@
|
|||
html += '</div>';
|
||||
|
||||
html += '<div class="notificationContent">';
|
||||
|
||||
|
||||
html += '<p class="notificationName">' + notification.Name + '</p>';
|
||||
|
||||
html += '<p>' + humane_date(notification.Date) + '</p>';
|
||||
|
@ -139,15 +139,19 @@
|
|||
html += '<p>' + notification.Description + '</p>';
|
||||
}
|
||||
|
||||
if (notification.Url) {
|
||||
html += '<p><a href="' + notification.Url + '" target="_blank">More information</a></p>';
|
||||
}
|
||||
|
||||
html += '</div>';
|
||||
|
||||
html += '</div>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
|
||||
function getImageHtml(notification) {
|
||||
|
||||
|
||||
if (notification.Level == "Error") {
|
||||
|
||||
return '<div class="imgNotification imgNotificationError"><div class="imgNotificationInner imgNotificationIcon"></div></div>';
|
||||
|
@ -158,7 +162,7 @@
|
|||
return '<div class="imgNotification imgNotificationWarning"><div class="imgNotificationInner imgNotificationIcon"></div></div>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
return '<div class="imgNotification imgNotificationNormal"><div class="imgNotificationInner imgNotificationIcon"></div></div>';
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue