this repo has no description
1{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
2
3{{ define "content" }}
4 <section id="repo-header" class="mb-4">
5 <p class="text-xl">
6 <a
7 href="/{{ .RepoInfo.OwnerWithAt }}"
8 class="no-underline hover:underline"
9 >{{ .RepoInfo.OwnerWithAt }}</a
10 >
11 /
12 <a
13 href="/{{ .RepoInfo.FullName }}"
14 class="no-underline hover:underline"
15 >{{ .RepoInfo.Name }}</a
16 >
17 </p>
18 <span>
19 {{ if .RepoInfo.Description }}
20 {{ .RepoInfo.Description }}
21 {{ else }}
22 <span class="italic">this repo has no description</span>
23 {{ end }}
24 </span>
25 </section>
26 <section id="repo-links" class="min-h-screen flex flex-col">
27 <nav class="w-full mx-auto">
28 <div class="flex z-60 border-gray-200 border-b">
29 {{ $activeTabStyles := "border-gray-200 border-l border-r border-t border-b-0 -mb-px bg-white" }}
30 {{ $tabs := .RepoInfo.GetTabs }}
31 {{ range $item := $tabs }}
32 {{ $key := index $item 0 }}
33 {{ $value := index $item 1 }}
34 <a
35 href="/{{ $.RepoInfo.FullName }}{{ $value }}"
36 class="relative -mr-px group no-underline"
37 hx-boost="true"
38 >
39 <div
40 class="px-4 py-2 mr-1 text-black min-w-[80px] text-center relative group-hover:bg-gray-200
41 {{ if eq $.Active $key }}
42 {{ $activeTabStyles }}
43 {{ end }}"
44 >
45 {{ $key }}
46 </div>
47 </a>
48 {{ end }}
49 </div>
50 </nav>
51 <section
52 class="bg-white p-6 min-h-[200px] border-l border-r border-b border-gray-200 relative z-20 w-full mx-auto"
53 >
54 {{ block "repoContent" . }}{{ end }}
55 </section>
56 {{ block "repoAfter" . }}{{ end }}
57 </section>
58{{ end }}
59
60{{ define "layouts/repobase" }}
61 {{ template "layouts/base" . }}
62{{ end }}