this repo has no description
1{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "content" }} 4 5 <section id="repo-header"> 6 <h1>{{ .RepoInfo.FullName }}</h1> 7 {{ if .RepoInfo.Description }} 8 <h3 class="desc">{{ .RepoInfo.Description }}</h3> 9 {{ else }} 10 <em>this repo has no description</em> 11 {{ end }} 12 </section> 13 <section id="repo-links" class="min-h-screen flex flex-col"> 14 <nav class="w-full mx-auto"> 15 <div class="flex z-60 border-black border-b"> 16 {{ $activeTabStyles := "border-black border-l border-r border-t border-b-0 -mb-px bg-white" }} 17 {{ $tabs := assoc "overview" "/" "issues" "/issues" "pulls" "/pulls" "settings" "/settings" }} 18 {{ range $item := $tabs }} 19 {{ $key := index $item 0 }} 20 {{ $value := index $item 1 }} 21 <a 22 href="/{{ $.RepoInfo.FullName }}{{ $value }}" 23 class="relative -mr-px group no-underline" 24 hx-boost="true" 25 > 26 <div 27 class="px-4 py-2 mr-1 text-black min-w-[80px] text-center text-sm relative group-hover:bg-gray-50 28 {{ if eq $.Active $key }}{{ $activeTabStyles }}{{ end }}" 29 > 30 {{ $key }} 31 </div> 32 </a> 33 {{ end}} 34 </div> 35 </nav> 36 <section 37 class="bg-white p-6 min-h-[200px] border-l border-r border-b border-black relative z-20 w-full mx-auto" 38 > 39 {{ block "repoContent" . }}{{ end }} 40 </section> 41 </section> 42{{ end }} 43 44{{ define "layouts/repobase" }} 45 {{ template "layouts/base" . }} 46{{ end }}