···37 <p class="text-sm text-gray-500 dark:text-gray-400">A knot hosts repository data. <a href="/settings/knots" class="underline">Learn how to register your own knot.</a></p>
38 </fieldset>
3900000000000000000000040 <div class="space-y-2">
41 <button type="submit" class="btn-create flex items-center gap-2">
42 {{ i "git-fork" "w-4 h-4" }}
···37 <p class="text-sm text-gray-500 dark:text-gray-400">A knot hosts repository data. <a href="/settings/knots" class="underline">Learn how to register your own knot.</a></p>
38 </fieldset>
3940+ <fieldset class="space-y-3">
41+ <details>
42+ <summary class="dark:text-white cursor-pointer select-none">Bring your own DID</summary>
43+ <div class="mt-2">
44+ <input
45+ type="text"
46+ id="repo_did"
47+ name="repo_did"
48+ class="w-full p-2 border rounded bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600"
49+ placeholder="did:web:example.com"
50+ />
51+ <p class="text-sm text-gray-500 dark:text-gray-400 mt-1">
52+ Provide a <code>did:web</code> you control to use as this fork's identity.
53+ You must serve a DID doc on your domain with an <code>atproto_pds</code> service
54+ endpoint pointing to the selected knot. If left empty, a <code>did:plc</code> will be
55+ automatically created for you!
56+ </p>
57+ </div>
58+ </details>
59+ </fieldset>
60+61 <div class="space-y-2">
62 <button type="submit" class="btn-create flex items-center gap-2">
63 {{ i "git-fork" "w-4 h-4" }}
+26
appview/pages/templates/repo/new.html
···70 <div class="space-y-2">
71 {{ template "defaultBranch" . }}
72 {{ template "knot" . }}
073 </div>
74 </div>
75 </div>
···168 A knot hosts repository data and handles Git operations.
169 You can also <a href="/settings/knots" class="underline">register your own knot</a>.
170 </p>
0000000000000000000000000171 </div>
172{{ end }}
173
···70 <div class="space-y-2">
71 {{ template "defaultBranch" . }}
72 {{ template "knot" . }}
73+ {{ template "repoDid" . }}
74 </div>
75 </div>
76 </div>
···169 A knot hosts repository data and handles Git operations.
170 You can also <a href="/settings/knots" class="underline">register your own knot</a>.
171 </p>
172+ </div>
173+{{ end }}
174+175+{{ define "repoDid" }}
176+ <div>
177+ <details>
178+ <summary class="text-sm font-bold uppercase dark:text-white mb-1 cursor-pointer select-none">
179+ Bring your own DID
180+ </summary>
181+ <div class="mt-2">
182+ <input
183+ type="text"
184+ id="repo_did"
185+ name="repo_did"
186+ class="w-full dark:bg-gray-700 dark:text-white dark:border-gray-600 border border-gray-300 rounded px-3 py-2"
187+ placeholder="did:web:example.com"
188+ />
189+ <p class="text-sm text-gray-500 dark:text-gray-400 mt-1">
190+ Provide a <code>did:web</code> you control to use as this repo's identity.
191+ You must serve a DID doc on your domain with an <code>atproto_pds</code> service
192+ endpoint pointing to the selected knot. If left empty, a <code>did:plc</code> will be
193+ automatically created for you!
194+ </p>
195+ </div>
196+ </details>
197 </div>
198{{ end }}
199