forked from tangled.org/core
this repo has no description
at issues-edit 1.4 kB view raw
1{{ define "title" }}settings &middot; {{ .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{{ end }}