Skip to content

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

Make primary link styles in all tables consistent with lists and campaigns pages.

Kailash Nadh7397e2809663
diff --git a/static/admin/views/bounces.html b/static/admin/views/bounces.html
index 5d4246da..3d6608a9 100644
--- a/static/admin/views/bounces.html
+++ b/static/admin/views/bounces.html
@@ -61,14 +61,14 @@
<tr data-testid="bounce-row" data-id="{{ .ID }}">
<td><input name="id" type="checkbox" value="{{ .ID }}" data-subscriber-id="{{ .SubscriberID }}"></td>
<td>
- <a href="{{ URI "/admin/subscribers" }}/{{ .SubscriberID }}" {{ if eq .SubscriberStatus "blocklisted" }}class="blocklisted"{{ end }}>{{ .Email }}</a>
+ <a href="{{ URI "/admin/subscribers" }}/{{ .SubscriberID }}" class="unstyled{{ if eq .SubscriberStatus "blocklisted" }} blocklisted{{ end }}">{{ .Email }}</a>
{{ if ne .SubscriberStatus "enabled" }}{{ Badge (list (Dot) ($.L.T (printf "subscribers.status.%s" .SubscriberStatus))) (printf "status-%s" .SubscriberStatus) }}{{ end }}
</td>
<td data-label="{{ $.L.T "globals.terms.campaign" }}">
- {{- with .ParsedCampaign }}<a href="{{ $base }}?campaign_id={{ .ID }}">{{ .Name }}</a>{{ else }}-{{ end }}
+ {{- with .ParsedCampaign }}<a href="{{ $base }}?campaign_id={{ .ID }}" class="unstyled">{{ .Name }}</a>{{ else }}-{{ end }}
</td>
- <td data-label="{{ $.L.T "bounces.source" }}"><a href="{{ $base }}?source={{ .Source }}">{{ .Source }}</a></td>
- <td data-label="{{ $.L.T "globals.fields.type" }}"><a href="{{ $base }}?type={{ .Type }}" title="{{ $.L.T "globals.buttons.view" }} {{ $.L.T (printf "bounces.%s" .Type) }}">{{ Badge ($.L.T (printf "bounces.%s" .Type)) "enum" }}</a></td>
+ <td data-label="{{ $.L.T "bounces.source" }}"><a href="{{ $base }}?source={{ .Source }}" class="unstyled">{{ .Source }}</a></td>
+ <td data-label="{{ $.L.T "globals.fields.type" }}"><a href="{{ $base }}?type={{ .Type }}" class="unstyled" title="{{ $.L.T "globals.buttons.view" }} {{ $.L.T (printf "bounces.%s" .Type) }}">{{ Badge ($.L.T (printf "bounces.%s" .Type)) "enum" }}</a></td>
<td class="date-stack" data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td>
<td class="actions align-right">
<ot-dropdown>
diff --git a/static/admin/views/roles.html b/static/admin/views/roles.html
index a8018901..43eecdce 100644
--- a/static/admin/views/roles.html
+++ b/static/admin/views/roles.html
@@ -38,7 +38,7 @@
{{- range $d.Roles }}
<tr data-testid="role-row" data-id="{{ .ID }}">
<td>
- <a href="{{ $base }}/{{ .ID }}">
+ <a href="{{ $base }}/{{ .ID }}" class="unstyled">
{{- if eq .ID 1 }}{{ Badge (list (Icon "star") .Name) "enum" }}{{ else }}{{ .Name }}{{ end -}}
</a>
</td>
diff --git a/static/admin/views/templates.html b/static/admin/views/templates.html
index 5f7f5e2c..60650369 100644
--- a/static/admin/views/templates.html
+++ b/static/admin/views/templates.html
@@ -44,7 +44,7 @@
{{- range $d.Templates }}
<tr data-testid="template-row" data-id="{{ .ID }}">
<td>
- <a href="{{ $base }}/{{ .ID }}" data-testid="btn-edit">{{ .Name }}</a>
+ <a href="{{ $base }}/{{ .ID }}" class="unstyled" data-testid="btn-edit">{{ .Name }}</a>
{{ if .IsDefault }}{{ Badge ($.L.T "templates.default") }}{{ end }}
{{- if eq .Type "tx" }}<p class="text-light">{{ .Subject }}</p>{{ end }}
</td>
diff --git a/static/admin/views/users.html b/static/admin/views/users.html
index 52a11a3e..c8cca4a4 100644
--- a/static/admin/views/users.html
+++ b/static/admin/views/users.html
@@ -77,7 +77,7 @@
{{ template "avatar" dict "Seed" (printf "%d" .ID) "Name" (or .Name .Username) "URL" .Avatar.String }}
<div>
{{- if $d.Can "users:manage" }}
- <a href="{{ URI "/admin/users" }}/{{ .ID }}" class="{{ if eq .Status "disabled" }}text-light{{ end }}">{{ .Username }}</a>
+ <a href="{{ URI "/admin/users" }}/{{ .ID }}" class="unstyled{{ if eq .Status "disabled" }} text-light{{ end }}">{{ .Username }}</a>
{{- else }}
<span class="{{ if eq .Status "disabled" }}text-danger{{ end }}">{{ .Username }}</span>
{{- end }}