1{{ define "fragments/repoDescription" }}
2<span id="repo-description" 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="bg-gray-200 uppercase rounded p-1 ml-1 hover:bg-gray-400 font-mono text-sm" hx-get="/{{ .RepoInfo.FullName }}/description/edit">
11 edit
12 </button>
13 {{ end }}
14</span>
15{{ end }}