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