diff --git a/src/components/activitylog.js b/src/components/activitylog.js index 6d56e96a56..a6206477e7 100644 --- a/src/components/activitylog.js +++ b/src/components/activitylog.js @@ -4,14 +4,21 @@ define(["events", "globalize", "dom", "datetime", "userSettings", "serverNotific function getEntryHtml(entry, apiClient) { var html = ""; html += '
'; - var color = "Error" == entry.Severity || "Fatal" == entry.Severity || "Warn" == entry.Severity ? "#cc0000" : "#00a4dc"; + var color = "#00a4dc"; + var icon = "notifications"; + if ("Error" == entry.Severity || "Fatal" == entry.Severity || "Warn" == entry.Severity) { + color = "#cc0000"; + icon = "notification_important"; + } if (entry.UserId && entry.UserPrimaryImageTag) { html += 'dvr" - } else html += 'dvr'; + } else { + html += '' + icon + ''; + } html += '
', html += '
', html += entry.Name, html += "
", html += '
'; var date = datetime.parseISO8601Date(entry.Date, !0); return html += datetime.toLocaleString(date).toLowerCase(), html += "
", html += '
', html += entry.ShortOverview || "", html += "
", html += "
", entry.Overview && (html += ''), html += "
" @@ -86,4 +93,4 @@ define(["events", "globalize", "dom", "datetime", "userSettings", "serverNotific var onUpdate = this.updateFn; onUpdate && events.off(serverNotifications, "ActivityLogEntry", onUpdate), this.items = null, this.options = null }, ActivityLog -}); \ No newline at end of file +});