23 lines
705 B
1
{{ define "repoContent" }}
2
<h3>settings</h3>
3
<em>collaborators</em>
4
<ol>
5
{{ range .Collaborators }}
6
<li>
7
{{ index . 0 }} -
8
{{ index . 3 }}
9
</li>
10
{{ else }}
11
<p>no members</p>
12
{{ end }}
13
</ol>
14
15
{{ if .IsCollaboratorInviteAllowed }}
16
<h3>add collaborator</h3>
17
<form hx-put="/{{ $.RepoInfo.FullName }}/settings/collaborator">
18
<label for="collaborator">did or handle:</label>
19
<input type="text" id="collaborator" name="collaborator" required />
20
<button class="btn my-2" type="text">add collaborator</button>
21
</form>
22
{{ end }}
23
{{ end }}
24