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 shrink-0" }} 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 <div class="flex items-center gap-2 z-auto"> 23 <a 24 class="btn text-sm no-underline hover:no-underline flex items-center gap-2 group" 25 href="/{{ .RepoInfo.FullName }}/feed.atom" 26 > 27 {{ i "rss" "size-4" }} 28 </a> 29 {{ template "repo/fragments/repoStar" .RepoInfo }} 30 <a 31 class="btn text-sm no-underline hover:no-underline flex items-center gap-2 group" 32 hx-boost="true" 33 href="/{{ .RepoInfo.FullName }}/fork" 34 > 35 {{ i "git-fork" "w-4 h-4" }} 36 fork 37 {{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }} 38 </a> 39 </div> 40 </div> 41 {{ template "repo/fragments/repoDescription" . }} 42 </section> 43 44 <section class="w-full flex flex-col" > 45 <nav class="w-full pl-4 overflow-auto"> 46 <div class="flex z-60"> 47 {{ $activeTabStyles := "-mb-px bg-white dark:bg-gray-800" }} 48 {{ $tabs := .RepoInfo.GetTabs }} 49 {{ $tabmeta := .RepoInfo.TabMetadata }} 50 {{ range $item := $tabs }} 51 {{ $key := index $item 0 }} 52 {{ $value := index $item 1 }} 53 {{ $icon := index $item 2 }} 54 {{ $meta := index $tabmeta $key }} 55 <a 56 href="/{{ $.RepoInfo.FullName }}{{ $value }}" 57 class="relative -mr-px group no-underline hover:no-underline" 58 hx-boost="true" 59 > 60 <div 61 class="px-4 py-1 mr-1 text-black dark:text-white min-w-[80px] text-center relative rounded-t whitespace-nowrap 62 {{ if eq $.Active $key }} 63 {{ $activeTabStyles }} 64 {{ else }} 65 group-hover:bg-gray-100/25 group-hover:dark:bg-gray-700/25 66 {{ end }} 67 " 68 > 69 <span class="flex items-center justify-center"> 70 {{ i $icon "w-4 h-4 mr-2" }} 71 {{ $key }} 72 {{ if $meta }} 73 <span class="bg-gray-200 dark:bg-gray-700 rounded py-1/2 px-1 text-sm ml-1">{{ $meta }}</span> 74 {{ end }} 75 </span> 76 </div> 77 </a> 78 {{ end }} 79 </div> 80 </nav> 81 {{ block "repoContentLayout" . }} 82 <section class="bg-white dark:bg-gray-800 p-6 rounded relative w-full mx-auto dark:text-white"> 83 {{ block "repoContent" . }}{{ end }} 84 </section> 85 {{ block "repoAfter" . }}{{ end }} 86 {{ end }} 87 </section> 88{{ end }}