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