forked from tangled.org/core
Monorepo for Tangled — https://tangled.org
at file-tree 1.3 kB view raw
1{{ define "title" }}fork &middot; {{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "content" }} 4<div class="p-6"> 5 <p class="text-xl font-bold dark:text-white">Fork {{ .RepoInfo.FullName }}</p> 6</div> 7<div class="p-6 bg-white dark:bg-gray-800 drop-shadow-sm rounded"> 8 <form hx-post="/{{ .RepoInfo.FullName }}/fork" class="space-y-12" hx-swap="none"> 9 <fieldset class="space-y-3"> 10 <legend class="dark:text-white">Select a knot to fork into</legend> 11 <div class="space-y-2"> 12 <div class="flex flex-col"> 13 {{ range .Knots }} 14 <div class="flex items-center"> 15 <input 16 type="radio" 17 name="knot" 18 value="{{ . }}" 19 class="mr-2" 20 id="domain-{{ . }}" 21 /> 22 <span class="dark:text-white">{{ . }}</span> 23 </div> 24 {{ else }} 25 <p class="dark:text-white">No knots available.</p> 26 {{ end }} 27 </div> 28 </div> 29 <p class="text-sm text-gray-500 dark:text-gray-400">A knot hosts repository data. <a href="/knots" class="underline">Learn how to register your own knot.</a></p> 30 </fieldset> 31 32 <div class="space-y-2"> 33 <button type="submit" class="btn">fork repo</button> 34 <div id="repo" class="error"></div> 35 </div> 36 </form> 37</div> 38{{ end }}