Skip to content

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

SSR: Add icons to subscriber page tabs.

Kailash Nadh30a735a361a4
diff --git a/static/admin/assets/static/icons.svg b/static/admin/assets/static/icons.svg
index 87317b69..428748cd 100644
--- a/static/admin/assets/static/icons.svg
+++ b/static/admin/assets/static/icons.svg
@@ -67,6 +67,10 @@
<polyline points="16 18 22 12 16 6" /><polyline points="8 6 2 12 8 18" />
</symbol>
+ <symbol id="icon-corner-right-down" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <polyline points="10 15 15 20 20 15" /><path d="M4 4h7a4 4 0 0 1 4 4v12" />
+ </symbol>
+
<symbol id="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2" /><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
</symbol>
diff --git a/static/admin/icons.txt b/static/admin/icons.txt
index 99fb6d18..ddd3e466 100644
--- a/static/admin/icons.txt
+++ b/static/admin/icons.txt
@@ -16,6 +16,7 @@ chevron-left
chevron-right
clock
code
+corner-right-down
copy
download-cloud
edit-2
diff --git a/static/admin/views/subscriber.html b/static/admin/views/subscriber.html
index 99a5dea7..a6e4649f 100644
--- a/static/admin/views/subscriber.html
+++ b/static/admin/views/subscriber.html
@@ -33,11 +33,11 @@
</header>
<div role="tablist">
- <a role="tab" href="{{ $base }}" {{ if eq $d.Tab "profile" }}aria-selected="true"{{ end }}>{{ .L.Tc "globals.terms.subscriber" 1 }}</a>
- <a role="tab" href="{{ $base }}/lists" {{ if eq $d.Tab "lists" }}aria-selected="true"{{ end }}>{{ .L.Tc "globals.terms.lists" 2 }} ({{ len $sub.ParsedLists }})</a>
- <a role="tab" href="{{ $base }}/activity" {{ if eq $d.Tab "activity" }}aria-selected="true"{{ end }}>{{ .L.T "subscribers.activity" }}</a>
+ <a role="tab" href="{{ $base }}" {{ if eq $d.Tab "profile" }}aria-selected="true"{{ end }}>{{ Icon "user" }} {{ .L.Tc "globals.terms.subscriber" 1 }}</a>
+ <a role="tab" href="{{ $base }}/lists" {{ if eq $d.Tab "lists" }}aria-selected="true"{{ end }}>{{ Icon "list" }} {{ .L.Tc "globals.terms.lists" 2 }} ({{ len $sub.ParsedLists }})</a>
+ <a role="tab" href="{{ $base }}/activity" {{ if eq $d.Tab "activity" }}aria-selected="true"{{ end }}>{{ Icon "activity" }} {{ .L.T "subscribers.activity" }}</a>
{{- if $d.Can "bounces:get" }}
- <a role="tab" href="{{ $base }}/bounces" {{ if eq $d.Tab "bounces" }}aria-selected="true"{{ end }}>{{ .L.T "globals.terms.bounces" }}</a>
+ <a role="tab" href="{{ $base }}/bounces" {{ if eq $d.Tab "bounces" }}aria-selected="true"{{ end }}>{{ Icon "corner-right-down" }} {{ .L.T "globals.terms.bounces" }}</a>
{{- end }}
</div>