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