···
<div class="flex flex-col">
{{ block "profile" . }} {{ end }}
{{ block "keys" . }} {{ end }}
10
-
{{ block "knots" . }} {{ end }}
{{ block "emails" . }} {{ end }}
···
<p class="mb-8">SSH public keys added here will be broadcasted to knots that you are a member of, <br> allowing you to push to repositories there.</p>
<div id="key-list" class="flex flex-col gap-6 mb-8">
{{ range $index, $key := .PubKeys }}
37
-
<div class="flex justify-between items-center gap-4">
36
+
<div class="grid grid-cols-[minmax(0,1fr)_auto] items-center gap-4">
37
+
<div class="flex flex-col gap-1">
<div class="inline-flex items-center gap-4">
<i class="w-3 h-3" data-lucide="key"></i>
<p class="font-bold">{{ .Name }}</p>
42
-
<p class="text-sm text-gray-500">added {{ .Created | timeFmt }}</p>
44
-
<code class="block break-all text-sm text-gray-500">{{ .Key }}</code>
42
+
<p class="text-sm text-gray-500">added {{ .Created | timeFmt }}</p>
43
+
<div class="overflow-x-auto whitespace-nowrap flex-1 max-w-full">
44
+
<code class="text-sm text-gray-500">{{ .Key }}</code>
class="btn text-red-500 hover:text-red-700"
···
hx-delete="/settings/keys?name={{urlquery .Name}}&rkey={{urlquery .Rkey}}&key={{urlquery .Key}}"
hx-confirm="Are you sure you wish to delete the key '{{ .Name }}'?">
<i class="w-5 h-5" data-lucide="trash-2"></i>
53
+
<span class="hidden md:inline">delete</span>
···
<p class="mb-8">Commits authored using emails listed here will be associated with your Tangled profile.</p>
<div id="email-list" class="flex flex-col gap-6 mb-8">
{{ range $index, $email := .Emails }}
89
-
<div class="flex justify-between items-center gap-4">
91
+
<div class="grid grid-cols-[minmax(0,1fr)_auto] items-center gap-4">
92
+
<div class="flex flex-col gap-2">
<div class="inline-flex items-center gap-4">
<i class="w-3 h-3" data-lucide="mail"></i>
<p class="font-bold">{{ .Address }}</p>
94
-
<p class="text-sm text-gray-500">added {{ .CreatedAt | timeFmt }}</p>
96
-
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">verified</span>
98
-
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">unverified</span>
101
-
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">primary</span>
96
+
<div class="inline-flex items-center gap-1">
98
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">verified</span>
100
+
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">unverified</span>
103
+
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">primary</span>
107
+
<p class="text-sm text-gray-500">added {{ .CreatedAt | timeFmt }}</p>
<div class="flex gap-2 items-center">
112
+
class="btn flex gap-2"
hx-post="/settings/emails/verify/resend"
hx-vals='{"email": "{{ .Address }}"}'>
113
-
resend verification
117
+
<i class="w-5 h-5" data-lucide="rotate-cw"></i>
118
+
<span class="hidden md:inline">resend</span>
{{ if and (not .Primary) .Verified }}
···
<i class="w-5 h-5" data-lucide="trash-2"></i>
139
+
<span class="hidden md:inline">delete</span>