this repo has no description
1{{ define "repo/fragments/repoDescription" }}
2 <span
3 id="repo-description"
4 class="flex flex-wrap items-center gap-2 text-sm"
5 hx-target="this"
6 hx-swap="outerHTML">
7 {{ if .RepoInfo.Description }}
8 {{ .RepoInfo.Description }}
9 {{ else }}
10 <span class="italic">this repo has no description</span>
11 {{ end }}
12
13 {{ if .RepoInfo.Roles.IsOwner }}
14 <button
15 class="flex items-center gap-2 no-underline text-sm"
16 hx-get="/{{ .RepoInfo.FullName }}/description/edit">
17 {{ i "pencil" "w-3 h-3" }}
18 </button>
19 {{ end }}
20 </span>
21{{ end }}