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">
5 <p class="text-lg">
6 <a href="/{{ .RepoInfo.OwnerWithAt }}">{{ .RepoInfo.OwnerWithAt }}</a>
7 <span class="select-none">/</span>
8 <a href="/{{ .RepoInfo.FullName }}" class="font-bold">{{ .RepoInfo.Name }}</a>
9 <span class="ml-3">
10 {{ template "fragments/star" .RepoInfo }}
11 </span>
12 </p>
13 {{ template "fragments/repoDescription" . }}
14 </section>
15 <section class="min-h-screen flex flex-col drop-shadow-sm">
16 <nav class="w-full pl-4 overflow-auto">
17 <div class="flex z-60">
18 {{ $activeTabStyles := "-mb-px bg-white" }}
19 {{ $tabs := .RepoInfo.GetTabs }}
20 {{ $tabmeta := .RepoInfo.TabMetadata }}
21 {{ range $item := $tabs }}
22 {{ $key := index $item 0 }}
23 {{ $value := index $item 1 }}
24 {{ $meta := index $tabmeta $key }}
25 <a
26 href="/{{ $.RepoInfo.FullName }}{{ $value }}"
27 class="relative -mr-px group no-underline hover:no-underline"
28 hx-boost="true"
29 >
30 <div
31 class="px-4 py-1 mr-1 text-black min-w-[80px] text-center relative rounded-t whitespace-nowrap
32 {{ if eq $.Active $key }}
33 {{ $activeTabStyles }}
34 {{ else }}
35 group-hover:bg-gray-200
36 {{ end }}
37 "
38 >
39 {{ $key }}
40 {{ if not (isNil $meta) }}
41 <span class="bg-gray-200 rounded py-1/2 px-1 text-sm">{{ $meta }}</span>
42 {{ end }}
43 </div>
44 </a>
45 {{ end }}
46 </div>
47 </nav>
48 <section
49 class="bg-white p-6 rounded relative z-20 w-full mx-auto drop-shadow-sm"
50 >
51 {{ block "repoContent" . }}{{ end }}
52 </section>
53 {{ block "repoAfter" . }}{{ end }}
54 </section>
55{{ end }}
56
57{{ define "layouts/repobase" }}
58 {{ template "layouts/base" . }}
59{{ end }}