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