this repo has no description
1{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "content" }} 4 <section id="repo-header" class="mb-4 py-2 px-6 dark:text-white"> 5 {{ if .RepoInfo.Source }} 6 <p class="text-sm"> 7 <div class="flex items-center"> 8 {{ i "git-fork" "w-3 h-3 mr-1"}} 9 forked from 10 {{ $sourceOwner := didOrHandle .RepoInfo.Source.Did .RepoInfo.SourceHandle }} 11 <a class="ml-1 underline" href="/{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}">{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}</a> 12 </div> 13 </p> 14 {{ end }} 15 <div class="text-lg flex items-center justify-between"> 16 <div> 17 <a href="/{{ .RepoInfo.OwnerWithAt }}">{{ .RepoInfo.OwnerWithAt }}</a> 18 <span class="select-none">/</span> 19 <a href="/{{ .RepoInfo.FullName }}" class="font-bold">{{ .RepoInfo.Name }}</a> 20 </div> 21 22 {{ template "repo/fragments/repoActions" .RepoInfo }} 23 </div> 24 {{ template "repo/fragments/repoDescription" . }} 25 </section> 26 27 <section 28 class="min-h-screen w-full flex flex-col drop-shadow-sm" 29 > 30 <nav class="w-full pl-4 overflow-auto"> 31 <div class="flex z-60"> 32 {{ $activeTabStyles := "-mb-px bg-white dark:bg-gray-800" }} 33 {{ $tabs := .RepoInfo.GetTabs }} 34 {{ $tabmeta := .RepoInfo.TabMetadata }} 35 {{ range $item := $tabs }} 36 {{ $key := index $item 0 }} 37 {{ $value := index $item 1 }} 38 {{ $icon := index $item 2 }} 39 {{ $meta := index $tabmeta $key }} 40 <a 41 href="/{{ $.RepoInfo.FullName }}{{ $value }}" 42 class="relative -mr-px group no-underline hover:no-underline" 43 hx-boost="true" 44 > 45 <div 46 class="px-4 py-1 mr-1 text-black dark:text-white min-w-[80px] text-center relative rounded-t whitespace-nowrap 47 {{ if eq $.Active $key }} 48 {{ $activeTabStyles }} 49 {{ else }} 50 group-hover:bg-gray-200 dark:group-hover:bg-gray-700 51 {{ end }} 52 " 53 > 54 <span class="flex items-center justify-center"> 55 {{ i $icon "w-4 h-4 mr-2" }} 56 {{ $key }} 57 {{ if not (isNil $meta) }} 58 <span class="bg-gray-200 dark:bg-gray-700 rounded py-1/2 px-1 text-sm ml-1">{{ $meta }}</span> 59 {{ end }} 60 </span> 61 </div> 62 </a> 63 {{ end }} 64 </div> 65 </nav> 66 <section 67 class="bg-white dark:bg-gray-800 p-6 rounded relative w-full dark:text-white" 68 > 69 {{ block "repoContent" . }}{{ end }} 70 </section> 71 {{ block "repoAfter" . }}{{ end }} 72 </section> 73{{ end }} 74 75{{ define "layouts/repobase" }} 76 {{ template "layouts/base" . }} 77{{ end }}