High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Mark error lines in red in the log view and improve formatting.
Kailash Nadh2f22abd6fa1f
diff --git a/static/admin/assets/css/style.css b/static/admin/assets/css/style.cssindex 0d6c4949..fed7429a 100644--- a/static/admin/assets/css/style.css+++ b/static/admin/assets/css/style.css@@ -1443,26 +1443,38 @@ section.users {}.line {- display: block;+ display: flex;+ align-items: flex-start;margin-block-end: 2px;&:hover {background: var(--faint);}++ .error {+ color: var(--danger);+ }}.timestamp,.file {color: var(--primary);- display: inline-block;+ flex-shrink: 0;margin-inline-end: var(--space-2);min-width: 100px;user-select: auto;+ white-space: nowrap;}.timestamp {margin-inline-end: var(--space-4);}++ .log-message {+ flex: 1;+ min-width: 0;+ overflow-wrap: anywhere;+ }}/* Forms */diff --git a/static/admin/views/bounces.html b/static/admin/views/bounces.htmlindex 364e5b66..9c219860 100644--- a/static/admin/views/bounces.html+++ b/static/admin/views/bounces.html@@ -67,7 +67,7 @@<td data-label="{{ $.L.T "globals.terms.campaign" }}">{{- with .ParsedCampaign }}<a href="{{ $base }}?campaign_id={{ .ID }}" class="unstyled" title="{{ $.L.T "globals.buttons.filter" }} {{ .Name }}">{{ .Name }}</a>{{ else }}-{{ end }}</td>- <td data-label="{{ $.L.T "bounces.source" }}"><a href="{{ $base }}?source={{ .Source }}" class="unstyled" title="{{ $.L.T "globals.buttons.filter" }} {{ .Source }}">{{ .Source }}</a></td>+ <td data-label="{{ $.L.T "bounces.source" }}"><a href="{{ $base }}?source={{ .Source }}" class="unstyled text-light" title="{{ $.L.T "globals.buttons.filter" }} {{ .Source }}">{{ .Source }}</a></td><td data-label="{{ $.L.T "globals.fields.type" }}"><a href="{{ $base }}?type={{ .Type }}" class="unstyled" title="{{ $.L.T "globals.buttons.filter" }} {{ $.L.T (printf "bounces.%s" .Type) }}">{{ Badge ($.L.T (printf "bounces.%s" .Type)) (printf "enum bounce-%s" .Type) }}</a></td><td class="date-stack" data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td><td class="actions align-right">diff --git a/static/admin/views/logs.html b/static/admin/views/logs.htmlindex dd60ee4a..328fbe93 100644--- a/static/admin/views/logs.html+++ b/static/admin/views/logs.html@@ -14,7 +14,7 @@<span class="line"><span class="timestamp" x-text="l.timestamp"></span><span class="file" x-show="l.file && l.file !== '*'" x-text="l.file + ':'"></span>- <span class="log-message" x-text="l.message"></span>+ <span class="log-message" :class="{ error: l.message.includes('error') }" x-text="l.message"></span></span></template></div>