From dd82890064c04ea82ab4205b2423d759312b43b1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 17 Jul 2013 11:19:00 -0400 Subject: [PATCH] display more info link in notifications --- dashboard-ui/scripts/notifications.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/dashboard-ui/scripts/notifications.js b/dashboard-ui/scripts/notifications.js index 0b0326585b..65e6210c71 100644 --- a/dashboard-ui/scripts/notifications.js +++ b/dashboard-ui/scripts/notifications.js @@ -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 += ''; html += '
'; - + html += '

' + notification.Name + '

'; html += '

' + humane_date(notification.Date) + '

'; @@ -139,15 +139,19 @@ html += '

' + notification.Description + '

'; } + if (notification.Url) { + html += '

More information

'; + } + html += '
'; html += ''; return html; } - + function getImageHtml(notification) { - + if (notification.Level == "Error") { return '
'; @@ -158,7 +162,7 @@ return '
'; } - + return '
'; }