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 max-w-3xl mx-auto"> 15 <div class="relative"> 16 <div class="flex relative"> 17 <a 18 href="/{{ .RepoInfo.FullName }}" 19 class="relative -mr-px group no-underline" 20 hx-boost="true" 21 > 22 <div 23 class="px-4 py-2 bg-white text-black min-w-[80px] text-center text-sm relative z-60 group-hover:bg-gray-50 24 {{ if eq .Active "index" }} 25 border-b-white border-b-0 border-gray-300 26 border-l border-r border-t 27 {{ else }} 28 border-gray-300 border translate-y-[2px] 29 {{ end }}" 30 > 31 overview 32 </div> 33 </a> 34 35 <a 36 href="/{{ .RepoInfo.FullName }}/issues" 37 class="relative -mr-px group no-underline" 38 hx-boost="true" 39 > 40 <div 41 class="px-4 py-2 bg-white text-black min-w-[80px] text-center text-sm relative z-50 group-hover:bg-gray-50 42 {{ if eq .Active "issues" }} 43 border-gray-500 border border-b-0 bg-white 44 {{ else }} 45 border-gray-300 border translate-y-[2px] 46 {{ end }} 47 " 48 > 49 issues 50 </div> 51 </a> 52 53 <a 54 href="#" 55 class="relative -mr-px group no-underline" 56 hx-boost="true" 57 > 58 <div 59 class="px-4 py-2 bg-white text-black min-w-[80px] text-center text-sm relative z-40 group-hover:bg-gray-50 60 {{ if eq .Active "pulls" }} 61 border-gray-500 border border-b-0 bg-white 62 {{ else }} 63 border-gray-300 border translate-y-[2px] 64 {{ end }} 65 " 66 > 67 pull requests 68 </div> 69 </a> 70 71 {{ if .RepoInfo.SettingsAllowed }} 72 <a 73 href="/{{ .RepoInfo.FullName }}/settings" 74 class="relative -mr-px group no-underline" 75 hx-boost="true" 76 > 77 <div 78 class="px-6 py-2 bg-white text-black min-w-[80px] text-center text-sm relative z-40 group-hover:bg-gray-50 79 {{ if .Active }} 80 border-gray-500 border border-b-0 bg-white 81 {{ else }} 82 border-gray-300 border translate-y-[2px] 83 {{ end }} 84 " 85 > 86 settings 87 </div> 88 </a> 89 {{ end }} 90 </div> 91 </div> 92 </nav> 93 <section 94 class="bg-white p-6 min-h-[200px] border border-gray-300 relative z-20 w-full max-w-3xl mx-auto" 95 > 96 {{ block "repoContent" . }}{{ end }} 97 </section> 98 </section> 99{{ end }} 100 101{{ define "layouts/repobase" }} 102 {{ template "layouts/base" . }} 103{{ end }}