From 2779037bbfc32aa88ab4573026271b78742b25d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20F=C3=A4th?= Date: Wed, 22 May 2019 10:52:48 +0200 Subject: [PATCH] improve style --- src/components/activitylog.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/activitylog.js b/src/components/activitylog.js index 3942e6d754..a6206477e7 100644 --- a/src/components/activitylog.js +++ b/src/components/activitylog.js @@ -4,13 +4,11 @@ define(["events", "globalize", "dom", "datetime", "userSettings", "serverNotific function getEntryHtml(entry, apiClient) { var html = ""; html += '
'; + var color = "#00a4dc"; + var icon = "notifications"; if ("Error" == entry.Severity || "Fatal" == entry.Severity || "Warn" == entry.Severity) { - var color = "#cc0000"; - var icon = "notification_important"; - } - else { - var color = "#00a4dc"; - var icon = "notifications"; + color = "#cc0000"; + icon = "notification_important"; } if (entry.UserId && entry.UserPrimaryImageTag) { html += 'dvr" - } else html += '' + icon + ''; + } 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 += "
"