this repo has no description
1{{ define "title" }}settings · {{ .RepoInfo.FullName }}{{ end }}
2{{ define "repoContent" }}
3 <header class="font-bold text-sm mb-4 uppercase dark:text-white">Collaborators</header>
4
5 <div id="collaborator-list" class="flex flex-col gap-2 mb-2">
6 {{ range .Collaborators }}
7 <div id="collaborator" class="mb-2">
8 <a
9 href="/{{ didOrHandle .Did .Handle }}"
10 class="no-underline hover:underline text-black dark:text-white"
11 >
12 {{ didOrHandle .Did .Handle }}
13 </a>
14 <div>
15 <span class="text-sm text-gray-500 dark:text-gray-400">
16 {{ .Role }}
17 </span>
18 </div>
19 </div>
20 {{ end }}
21 </div>
22
23 {{ if .IsCollaboratorInviteAllowed }}
24 <h3 class="dark:text-white">add collaborator</h3>
25 <form hx-put="/{{ $.RepoInfo.FullName }}/settings/collaborator">
26 <label for="collaborator" class="dark:text-white">did or handle:</label>
27 <input type="text" id="collaborator" name="collaborator" required class="dark:bg-gray-700 dark:text-white" />
28 <button class="btn my-2 dark:text-white dark:hover:bg-gray-700" type="text">add collaborator</button>
29 </form>
30 {{ end }}
31
32 <form hx-put="/{{ $.RepoInfo.FullName }}/settings/branches/default" class="mt-6">
33 <label for="branch">default branch:</label>
34 <select id="branch" name="branch" required class="p-1 border border-gray-200 bg-white">
35 {{ range .Branches }}
36 <option
37 value="{{ . }}"
38 class="py-1"
39 {{ if eq . $.DefaultBranch }}
40 selected
41 {{ end }}
42 >
43 {{ . }}
44 </option>
45 {{ end }}
46 </select>
47 <button class="btn my-2" type="text">save</button>
48 </form>
49{{ end }}