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
45 class="w-full flex flex-col drop-shadow-sm"
46 >
47 <nav class="w-full pl-4 overflow-auto">
48 <div class="flex z-60">
49 {{ $activeTabStyles := "-mb-px bg-white dark:bg-gray-800" }}
50 {{ $tabs := .RepoInfo.GetTabs }}
51 {{ $tabmeta := .RepoInfo.TabMetadata }}
52 {{ range $item := $tabs }}
53 {{ $key := index $item 0 }}
54 {{ $value := index $item 1 }}
55 {{ $icon := index $item 2 }}
56 {{ $meta := index $tabmeta $key }}
57 <a
58 href="/{{ $.RepoInfo.FullName }}{{ $value }}"
59 class="relative -mr-px group no-underline hover:no-underline"
60 hx-boost="true"
61 >
62 <div
63 class="px-4 py-1 mr-1 text-black dark:text-white min-w-[80px] text-center relative rounded-t whitespace-nowrap
64 {{ if eq $.Active $key }}
65 {{ $activeTabStyles }}
66 {{ else }}
67 group-hover:bg-gray-100/25 group-hover:dark:bg-gray-700/25
68 {{ end }}
69 "
70 >
71 <span class="flex items-center justify-center">
72 {{ i $icon "w-4 h-4 mr-2" }}
73 {{ $key }}
74 {{ if $meta }}
75 <span class="bg-gray-200 dark:bg-gray-700 rounded py-1/2 px-1 text-sm ml-1">{{ $meta }}</span>
76 {{ end }}
77 </span>
78 </div>
79 </a>
80 {{ end }}
81 </div>
82 </nav>
83 <section
84 class="bg-white dark:bg-gray-800 p-6 rounded relative w-full dark:text-white"
85 >
86 {{ block "repoContent" . }}{{ end }}
87 </section>
88 {{ block "repoAfter" . }}{{ end }}
89 </section>
90{{ end }}