Skip to content

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

Style responsive views.

Kailash Nadhbe5d495e83fa
diff --git a/static/admin/assets/css/style.css b/static/admin/assets/css/style.css
index 547fc8ab..88f9a7b7 100644
--- a/static/admin/assets/css/style.css
+++ b/static/admin/assets/css/style.css
@@ -407,19 +407,6 @@ body[data-sidebar-layout] {
> main {
overflow-y: visible;
}
-
- @media (max-width: 768px) {
- grid-template-columns: minmax(0, 1fr);
- column-gap: 0;
- justify-content: stretch;
- padding-inline: var(--space-4);
- }
-
- &[data-sidebar-open] > aside[data-sidebar] {
- @media (max-width: 768px) {
- box-shadow: var(--shadow-large);
- }
- }
}
nav[data-topnav] {
@@ -458,7 +445,7 @@ nav[data-topnav] {
a,
button {
- color: var(--muted-foreground);
+ color: var(--foreground);
}
img {
@@ -512,36 +499,16 @@ nav[data-topnav] {
}
}
}
-
-
- @media (max-width: 768px) {
- > .row {
- --grid-cols: 12;
- grid-template-columns: minmax(0, 1fr) auto;
- }
-
- .favicon {
- display: inline-block;
- }
-
- .logo {
- display: none;
- }
-
- .user-label {
- display: none;
- }
-
- .hstack {
- gap: var(--space-2);
- }
- }
}
aside[data-sidebar] {
+ align-self: start;
background: transparent;
border-inline-end: 0;
box-shadow: none;
+ height: calc(100dvh - 4.5rem);
+ position: sticky;
+ top: 4.5rem;
> nav {
margin-block-start: var(--space-3);
@@ -568,32 +535,6 @@ aside[data-sidebar] {
details[open] > summary {
color: var(--foreground);
}
-
- @media (min-width: 769px) {
- align-self: start;
- position: sticky;
- top: 4.5rem;
- height: calc(100dvh - 4.5rem);
- }
-
- @media (max-width: 768px) {
- background: var(--background);
- border-inline-end: 1px solid var(--border);
- box-sizing: border-box;
- box-shadow: none;
- margin-inline-start: calc(-1 * var(--space-4));
- max-width: calc(100vw - var(--space-4));
-
- > nav {
- margin-block-start: 0;
- padding: var(--space-3) var(--space-2);
- }
-
- a,
- summary {
- padding-inline: var(--space-3);
- }
- }
}
main {
@@ -766,8 +707,6 @@ td > .empty-state {
}
.bulk-actions {
- /* Fades the table columns out behind the floating actions. The table
- sits on a card, so the fade has to match the card, not the page. */
box-shadow: -10px 0 10px var(--card);
position: absolute;
right: var(--space-6);
@@ -1447,30 +1386,301 @@ section.users {
}
/* Responsive */
-@media screen and (max-width: 1100px) {
- html,
- body {
- overflow-x: auto;
+@media (max-width: 768px) {
+ main {
+ padding-block-start: var(--space-6);
}
- td .badge:not(:last-child),
- td a:not(:last-child) > .badge {
- margin-inline-end: 0;
+ #app[data-sidebar-layout] {
+ --topnav-height: 3.25rem;
+
+ grid-template-columns: minmax(0, 1fr);
+ padding-block-start: var(--topnav-height);
+ padding-inline: var(--space-4);
+
+ &[data-sidebar-open] > aside[data-sidebar] {
+ box-shadow: var(--shadow-large);
+ }
}
- section.dashboard label {
- min-width: auto;
+ nav[data-topnav] {
+ background: var(--background);
+ box-shadow: var(--shadow-medium);
+ height: var(--topnav-height);
+ inset-block-start: 0;
+ inset-inline: 0;
+ padding-block: 0;
+ padding-inline: var(--space-4);
+ position: fixed;
+ z-index: 10;
+
+ > .row {
+ align-items: center;
+ }
+
+ .hstack {
+ gap: var(--space-2);
+ }
+
+ .favicon {
+ display: inline-block;
+ }
+
+ .logo,
+ .user-label {
+ display: none;
+ }
+ }
+
+ aside[data-sidebar] {
+ align-self: stretch;
+ background: var(--background);
+ border-inline-end: 1px solid var(--border);
+ height: auto;
+ margin-inline-start: calc(-1 * var(--space-4));
+ max-width: calc(100vw - var(--space-4));
+ position: static;
+
+ > nav {
+ margin-block-start: 0;
+ padding: var(--space-3) var(--space-2);
+ }
+
+ a,
+ summary {
+ padding-inline: var(--space-3);
+ }
+ }
+
+ .page-header {
+ margin-bottom: var(--space-4);
+
+ .hstack > * {
+ flex: 1 1 auto;
+ }
+
+ .hstack > .search-form {
+ flex-grow: 999;
+ }
+
+ .search-form ot-dropdown {
+ display: block;
+ }
}
-}
-@media screen and (max-width: 850px) {
.settings .settings-tabs {
display: block;
+
+ > [role="tablist"] {
+ margin: 0 0 var(--space-4);
+ position: static;
+ width: auto;
+ }
}
- .settings .settings-tabs>[role="tablist"] {
- width: auto;
- margin: 0 0 var(--space-4);
- position: static;
+ /* Make table rows into cards. */
+ .page-content table:not(.rte-content table) {
+ display: block;
+
+ thead {
+ display: none;
+ }
+
+ thead:has(th input[type="checkbox"], th a[data-sort-field]) {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--space-2);
+ padding-block: var(--space-4);
+ border-bottom: 0;
+ }
+
+ thead tr {
+ display: contents;
+ }
+
+ th {
+ display: none;
+ width: auto;
+ padding: 0;
+ border: 0;
+ }
+
+ th:has(input[type="checkbox"], a[data-sort-field]) {
+ display: block;
+ }
+
+ /* Sort links become pills. */
+ th a[data-sort-field] {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-1);
+ min-height: 1.75rem;
+ padding: 2px var(--space-3);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-full);
+ }
+
+ tbody {
+ display: block;
+ }
+
+ tbody tr {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) auto auto;
+ row-gap: var(--space-3);
+ padding-block: var(--space-4);
+ }
+
+ td {
+ grid-column: 1 / -1;
+ width: auto;
+ max-width: none;
+ padding: 0;
+ border: 0;
+ overflow-wrap: anywhere;
+ white-space: normal;
+ text-align: start;
+ }
+
+ td:first-child:not([colspan]),
+ td:first-child:has(> input[type="checkbox"]) + td,
+ td.actions {
+ grid-row: 1;
+ grid-column: 1;
+ padding-block-end: var(--space-3);
+ border-bottom: 1px solid var(--border);
+ }
+
+ td:first-child:has(> input[type="checkbox"]) {
+ grid-column: 2;
+ padding-inline: var(--space-3);
+ }
+
+ td.actions {
+ grid-column: 3;
+ text-align: end;
+ }
+
+ td .view {
+ display: none;
+ }
+
+ td[data-label] {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ column-gap: var(--space-4);
+ text-align: end;
+
+ &::before {
+ content: attr(data-label);
+ flex: 0 0 auto;
+ margin-inline-end: auto;
+ color: var(--muted-foreground);
+ text-align: start;
+ }
+ }
+
+ td.stats {
+ &:not(:has(dd)) {
+ display: none;
+ }
+
+ dl {
+ row-gap: var(--space-3);
+ }
+
+ dl > div {
+ column-gap: var(--space-4);
+ }
+
+ dt {
+ min-width: 0;
+ }
+
+ dd {
+ text-align: end;
+ }
+ }
+
+ td.lists {
+ padding-block-end: var(--space-3);
+ border-bottom: 1px solid var(--border);
+
+ li {
+ max-width: none;
+ }
+
+ li a {
+ white-space: normal;
+ }
+ }
+
+ td.type .schedule {
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: baseline;
+ column-gap: var(--space-4);
+ }
+ }
+
+ .page-content.card.has-table {
+ background: none;
+ border: 0;
+ box-shadow: none;
+ padding-inline: 0;
+ }
+
+ .page-content .table-wrapper {
+ margin-inline: 0;
+
+ tr :is(th, td) {
+ &:first-child { padding-left: 0; }
+ &:last-child { padding-right: 0; }
+ }
+
+ tbody tr {
+ margin-block-end: var(--space-3);
+ padding-inline: var(--space-4);
+ background-color: var(--card);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-medium);
+ box-shadow: var(--shadow-small);
+ }
+
+ tbody td:first-child:not([colspan]):not(:has(> input[type="checkbox"])),
+ tbody td:first-child:has(> input[type="checkbox"]) + td {
+ margin-inline-start: calc(-1 * var(--space-4));
+ padding-inline-start: var(--space-4);
+ }
+
+ tbody td.lists {
+ margin-inline: calc(-1 * var(--space-4));
+ padding-inline: var(--space-4);
+ }
+
+ tbody td.actions {
+ margin-inline-end: calc(-1 * var(--space-4));
+
+ button.more {
+ font-size: var(--text-3);
+ padding-inline: var(--space-4) 0;
+ }
+ }
+
+ .bulk-actions {
+ top: var(--space-3);
+ right: var(--space-3);
+ box-shadow: none;
+
+ > button {
+ height: 1.75rem;
+ }
+ }
+
+ .pagination {
+ padding-inline-end: 0;
+ }
}
}
diff --git a/static/admin/partials/subscriber-activity.html b/static/admin/partials/subscriber-activity.html
index 194178d4..90d26262 100644
--- a/static/admin/partials/subscriber-activity.html
+++ b/static/admin/partials/subscriber-activity.html
@@ -15,8 +15,8 @@
{{- range $d.CampaignViews }}
<tr>
<td><a href="{{ URI "/admin/campaigns" }}/{{ .ID }}">{{ .Name }}</a><p class="text-light">{{ .Subject }}</p></td>
- <td>{{ .ViewCount }}</td>
- <td>{{ NiceDate .LastViewedAt }}</td>
+ <td data-label="{{ $.L.T "campaigns.views" }}">{{ .ViewCount }}</td>
+ <td data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .LastViewedAt }}</td>
</tr>
{{- end }}
</tbody>
@@ -31,9 +31,9 @@
{{- range $d.LinkClicks }}
<tr>
<td>{{- if .CampaignID }}<a href="{{ URI "/admin/campaigns" }}/{{ .CampaignID }}">{{ or .CampaignSubject .CampaignName }}</a>{{- end }}</td>
- <td class="link-click-url"><a href="{{ .URL }}" target="_blank" rel="noopener noreferrer">{{ .URL }}</a></td>
- <td>{{ .ClickCount }}</td>
- <td>{{ NiceDate .LastClickedAt }}</td>
+ <td class="link-click-url" data-label="{{ $.L.T "globals.terms.url" }}"><a href="{{ .URL }}" target="_blank" rel="noopener noreferrer">{{ .URL }}</a></td>
+ <td data-label="{{ $.L.T "campaigns.clicks" }}">{{ .ClickCount }}</td>
+ <td data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .LastClickedAt }}</td>
</tr>
{{- end }}
</tbody>
diff --git a/static/admin/partials/subscriber-bounces.html b/static/admin/partials/subscriber-bounces.html
index 369e5623..7c251c73 100644
--- a/static/admin/partials/subscriber-bounces.html
+++ b/static/admin/partials/subscriber-bounces.html
@@ -16,7 +16,7 @@
<a href="{{ URI "/admin/campaigns" }}/{{ .ID }}">{{ .Name }}</a>
{{- end }}
</td>
- <td>{{ NiceDate .CreatedAt }}</td>
+ <td data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td>
<td>
<a href="#" @click.prevent="toggleMeta({{ .ID }})">{{ .Source }} {{ Icon "chevron-down" }}</a>
<pre x-show="visibleMeta[{{ .ID }}]" x-cloak>{{ printf "%s" .Meta }}</pre>
diff --git a/static/admin/partials/subscriber-lists.html b/static/admin/partials/subscriber-lists.html
index f2aff9a1..08c87eed 100644
--- a/static/admin/partials/subscriber-lists.html
+++ b/static/admin/partials/subscriber-lists.html
@@ -22,19 +22,19 @@
<a href="{{ URI "/admin/lists" }}/{{ .ID }}">{{ .Name }}</a>
{{- end }}
</td>
- <td>
+ <td data-label="{{ $root.L.T "lists.optin" }}">
{{- $icon := "user-x" }}{{ if eq .Optin "double" }}{{ $icon = "user-check" }}{{ end }}
{{ Badge (list (Icon $icon) ($root.L.T (printf "lists.optins.%s" .Optin))) "enum" }}
</td>
- <td>
+ <td data-label="{{ $root.L.T "globals.fields.status" }}">
{{- if and (eq .Optin "single") (eq .SubscriptionStatus "unconfirmed") -}}
<span class="text-light">&ndash;</span>
{{- else -}}
{{ Badge (list (Dot) ($root.L.T (printf "subscribers.status.%s" .SubscriptionStatus))) (printf "enum status-%s" .SubscriptionStatus) }}
{{- end -}}
</td>
- <td>{{ NiceDate .SubscriptionCreatedAt }}</td>
- <td>{{ NiceDate .SubscriptionUpdatedAt }}</td>
+ <td data-label="{{ $root.L.T "globals.fields.createdAt" }}">{{ NiceDate .SubscriptionCreatedAt }}</td>
+ <td data-label="{{ $root.L.T "globals.fields.updatedAt" }}">{{ NiceDate .SubscriptionUpdatedAt }}</td>
{{- if $canSave }}
<td class="actions align-right">
<ot-dropdown>
diff --git a/static/admin/views/base.html b/static/admin/views/base.html
index 528f4221..59524108 100644
--- a/static/admin/views/base.html
+++ b/static/admin/views/base.html
@@ -56,7 +56,7 @@
<span class="user-label">{{ .Username }}</span>
</button>
<menu popover id="user-menu">
- <a href="{{ URI "/admin/user/profile" }}" role="menuitem">{{ Icon "user" }} {{ $.L.T "users.profile" }}</a>
+ <a href="{{ URI "/admin/user/profile" }}" role="menuitem" class="button ghost">{{ Icon "user" }} {{ $.L.T "users.profile" }}</a>
<button type="button" role="menuitem" class="ghost" onclick="fetch('{{ URI "/api/logout" }}', { method: 'POST' }).then(() => { document.location.href = '{{ URI "/admin/login" }}'; })">
{{ Icon "log-out" }} {{ $.L.T "users.logout" }}
</button>
diff --git a/static/admin/views/bounces.html b/static/admin/views/bounces.html
index 4c35b7cb..ba849baa 100644
--- a/static/admin/views/bounces.html
+++ b/static/admin/views/bounces.html
@@ -66,12 +66,12 @@
<a href="{{ URI "/admin/subscribers" }}/{{ .SubscriberID }}" {{ if eq .SubscriberStatus "blocklisted" }}class="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>
+ <td data-label="{{ $.L.T "globals.terms.campaign" }}">
{{- with .ParsedCampaign }}<a href="{{ $base }}?campaign_id={{ .ID }}">{{ .Name }}</a>{{ else }}-{{ end }}
</td>
- <td><a href="{{ $base }}?source={{ .Source }}">{{ .Source }}</a></td>
- <td><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 class="date-stack">{{ NiceDate .CreatedAt }}</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 class="date-stack" data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td>
<td class="actions align-right">
<ot-dropdown>
<button popovertarget="bounce-actions-{{ .ID }}" type="button" class="ghost more icon" aria-label="{{ $.L.T "globals.buttons.more" }}">
diff --git a/static/admin/views/campaigns.html b/static/admin/views/campaigns.html
index 2ce99d7e..cfedfd40 100644
--- a/static/admin/views/campaigns.html
+++ b/static/admin/views/campaigns.html
@@ -107,7 +107,7 @@
{{- if eq .Status "running" }}<span class="spinner" data-spinner="small" aria-busy="true"></span>{{ end }}
</a>
{{- if or (eq .Status "scheduled") .SendAt.Valid }}
- <div class="vstack gap-1 text-8 text-light">
+ <div class="schedule vstack gap-1 text-8 text-light">
{{- with Duration now .SendAt }}
<div>{{ . }}</div>
{{- end }}
diff --git a/static/admin/views/dashboard.html b/static/admin/views/dashboard.html
index c524a83f..d5467627 100644
--- a/static/admin/views/dashboard.html
+++ b/static/admin/views/dashboard.html
@@ -93,7 +93,7 @@
<td width="20%"class="text-light">
{{- if and (eq .Status "scheduled") .SendAt.Valid }}{{ NiceDate .SendAt }}{{ else }}{{ NiceDate .CreatedAt }}{{ end -}}
</td>
- <td class="align-right">
+ <td class="actions align-right">
{{- if $d.Can "campaigns:get_analytics" }}
<a href="{{ URI "/admin/campaigns/analytics" }}?id={{ .ID }}" title="{{ $.L.T "globals.terms.analytics" }}">{{ Icon "bar-chart-2" }}</a>
{{- end }}
diff --git a/static/admin/views/list-role.html b/static/admin/views/list-role.html
index fced1d8a..44d425ff 100644
--- a/static/admin/views/list-role.html
+++ b/static/admin/views/list-role.html
@@ -58,7 +58,7 @@
<label><input type="checkbox" value="list:manage" x-model="l.permissions" :disabled="disabled" /> {{ .L.T "globals.buttons.manage" }}</label>
</div>
</td>
- <td class="align-right">
+ <td class="actions align-right">
<button type="button" class="ghost icon" data-variant="danger" :disabled="disabled" @click="onDeleteListPerm(l.id)" :aria-label="`{{ .L.T "globals.buttons.delete" }} ${l.name}`">{{ Icon "trash-2" }}</button>
</td>
</tr>
diff --git a/static/admin/views/lists.html b/static/admin/views/lists.html
index 6f0173b3..fc518c6b 100644
--- a/static/admin/views/lists.html
+++ b/static/admin/views/lists.html
@@ -99,7 +99,7 @@
<a href="{{ $base }}?optin={{ .Optin }}" title="{{ $.L.T "globals.buttons.view" }} {{ $.L.T (printf "lists.optins.%s" .Optin) }}">{{ Badge (list (Icon $icon) ($.L.T (printf "lists.optins.%s" .Optin))) "enum" }}</a>
</div>
</td>
- <td class="subscribers">
+ <td class="subscribers" data-label="{{ $.L.T "globals.terms.subscribers" }}">
{{- if $d.Can "subscribers:get" "subscribers:get_all" }}
<a class="subscriber-total align-center" href="{{ URI "/admin/subscribers/lists" }}/{{ .ID }}">{{ FormatNumber .SubscriberCount }}<br /><span class="view">{{ $.L.T "globals.buttons.view" }}</span></a>
{{- else }}
@@ -133,7 +133,7 @@
{{- end }}
</dl>
</td>
- <td class="date-stack">
+ <td class="date-stack" data-label="{{ $.L.T "globals.fields.createdAt" }}">
{{ NiceDate .CreatedAt }}
<!-- <p class="text-lighter text-8">{{ NiceDate .UpdatedAt }}</p> -->
</td>
diff --git a/static/admin/views/roles.html b/static/admin/views/roles.html
index 513b0730..164f30b9 100644
--- a/static/admin/views/roles.html
+++ b/static/admin/views/roles.html
@@ -42,8 +42,8 @@
{{- if eq .ID 1 }}{{ Badge (list (Icon "star") .Name) "enum" }}{{ else }}{{ .Name }}{{ end -}}
</a>
</td>
- <td class="date-stack">{{ NiceDate .CreatedAt }}</td>
- <td class="date-stack">{{ NiceDate .UpdatedAt }}</td>
+ <td class="date-stack" data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td>
+ <td class="date-stack" data-label="{{ $.L.T "globals.fields.updatedAt" }}">{{ NiceDate .UpdatedAt }}</td>
<td class="actions align-right">
{{- if $d.Can "roles:manage" }}
<ot-dropdown>
diff --git a/static/admin/views/subscribers.html b/static/admin/views/subscribers.html
index 3d3f2eb8..818adbb3 100644
--- a/static/admin/views/subscribers.html
+++ b/static/admin/views/subscribers.html
@@ -133,9 +133,9 @@
</div>
</div>
</td>
- <td><a class="unstyled" href="{{ URI "/admin/subscribers" }}/{{ .ID }}">{{ .Name }}</a></td>
- <td>{{ NiceDate .CreatedAt }}</td>
- <td>{{ NiceDate .UpdatedAt }}</td>
+ <td data-label="{{ $.L.T "globals.fields.name" }}"><a class="unstyled" href="{{ URI "/admin/subscribers" }}/{{ .ID }}">{{ .Name }}</a></td>
+ <td data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td>
+ <td data-label="{{ $.L.T "globals.fields.updatedAt" }}">{{ NiceDate .UpdatedAt }}</td>
<td class="actions align-right">
<ot-dropdown>
<button popovertarget="sub-actions-{{ .ID }}" type="button" class="ghost more icon" aria-label="{{ $.L.T "globals.buttons.more" }}">
diff --git a/static/admin/views/templates.html b/static/admin/views/templates.html
index 36e7bdbf..abd9e6b2 100644
--- a/static/admin/views/templates.html
+++ b/static/admin/views/templates.html
@@ -62,8 +62,8 @@
{{- end }}
</div>
</td>
- <td>{{ .ID }}</td>
- <td class="date-stack">{{ NiceDate .CreatedAt }}</td>
+ <td data-label="{{ $.L.T "globals.fields.id" }}">{{ .ID }}</td>
+ <td class="date-stack" data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td>
<td class="actions align-right">
<ot-dropdown>
<button popovertarget="tpl-actions-{{ .ID }}" type="button" class="ghost more icon" aria-label="{{ $.L.T "globals.buttons.more" }}">
diff --git a/static/admin/views/users.html b/static/admin/views/users.html
index dd184f3f..1296a9d1 100644
--- a/static/admin/views/users.html
+++ b/static/admin/views/users.html
@@ -99,9 +99,9 @@
{{- end }}
</div>
</td>
- <td>{{ if .Email.Valid }}{{ .Email.String }}{{ else }}<span class="text-light">&mdash;</span>{{ end }}</td>
- <td class="date-stack">{{ NiceDate .CreatedAt }}</td>
- <td class="date-stack">{{ if .LoggedInAt.Valid }}{{ NiceDate .LoggedInAt }}{{ else }}<span class="text-light">&mdash;</span>{{ end }}</td>
+ <td data-label="{{ $.L.T "subscribers.email" }}">{{ if .Email.Valid }}{{ .Email.String }}{{ else }}<span class="text-light">&mdash;</span>{{ end }}</td>
+ <td class="date-stack" data-label="{{ $.L.T "globals.fields.createdAt" }}">{{ NiceDate .CreatedAt }}</td>
+ <td class="date-stack" data-label="{{ $.L.T "users.lastLogin" }}">{{ if .LoggedInAt.Valid }}{{ NiceDate .LoggedInAt }}{{ else }}<span class="text-light">&mdash;</span>{{ end }}</td>
<td class="actions align-right">
{{- if $d.Can "users:manage" }}
<ot-dropdown>