1{{ define "repoContent" }}
2 <header class="font-bold text-sm mb-4">COLLABORATORS</header>
3
4 <div id="collaborator-list" class="flex flex-col gap-2 mb-2">
5 {{ range .Collaborators }}
6 <div id="collaborator" class="mb-2">
7 <a href="/{{ didOrHandle .Did .Handle }}" class="no-underline hover:underline text-black">
8 {{ didOrHandle .Did .Handle }}
9 </a>
10 <div>
11 <span class="text-sm text-gray-500">
12 {{ .Role }}
13 </span>
14 </div>
15 </div>
16 {{ end }}
17 </div>
18
19 {{ if .IsCollaboratorInviteAllowed }}
20 <h3>add collaborator</h3>
21 <form hx-put="/{{ $.RepoInfo.FullName }}/settings/collaborator">
22 <label for="collaborator">did or handle:</label>
23 <input type="text" id="collaborator" name="collaborator" required />
24 <button class="btn my-2" type="text">add collaborator</button>
25 </form>
26 {{ end }}
27{{ end }}