Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Colour the 'private' list badges for quick distinction.

Kailash Nadh835e072a501b
diff --git a/static/admin/assets/css/style.css b/static/admin/assets/css/style.css
index db329b5f..bdd8be48 100644
--- a/static/admin/assets/css/style.css
+++ b/static/admin/assets/css/style.css
@@ -302,6 +302,7 @@ a:has(> .badge:only-child) {
&.status-scheduled,
&.bounce-soft,
&.status-unconfirmed,
+ &.type-private,
&[data-variant="warning"] {
--badge-fg: var(--tone-amber);
--badge-bg: var(--tone-amber-bg);
diff --git a/static/admin/views/lists.html b/static/admin/views/lists.html
index 36e2e1ac..07d7452f 100644
--- a/static/admin/views/lists.html
+++ b/static/admin/views/lists.html
@@ -95,7 +95,7 @@
<td>
<div class="hstack">
{{- $typeIcon := "eye-off" }}{{ if eq .Type "public" }}{{ $typeIcon = "eye" }}{{ end }}
- <a href="{{ $base }}?type={{ .Type }}" title="{{ $.L.T "globals.buttons.filter" }} {{ $.L.T (printf "lists.types.%s" .Type) }}">{{ Badge (list (Icon $typeIcon) ($.L.T (printf "lists.types.%s" .Type))) "enum" }}</a>
+ <a href="{{ $base }}?type={{ .Type }}" title="{{ $.L.T "globals.buttons.filter" }} {{ $.L.T (printf "lists.types.%s" .Type) }}">{{ Badge (list (Icon $typeIcon) ($.L.T (printf "lists.types.%s" .Type))) (printf "enum type-%s" .Type) }}</a>
{{- $icon := "user-x" }}{{ if eq .Optin "double" }}{{ $icon = "user-check" }}{{ end }}
<a href="{{ $base }}?optin={{ .Optin }}" title="{{ $.L.T "globals.buttons.filter" }} {{ $.L.T (printf "lists.optins.%s" .Optin) }}">{{ Badge (list (Icon $icon) ($.L.T (printf "lists.optins.%s" .Optin))) "enum" }}</a>
</div>