Signed-off-by: Will did:plc:dadhhalkfcq3gucaq25hjqon
appview/db/repos.go
appview/db/repos.go
This file has not been changed.
appview/pages/pages.go
appview/pages/pages.go
This file has not been changed.
appview/pages/templates/layouts/repobase.html
appview/pages/templates/layouts/repobase.html
This file has not been changed.
appview/repo/repo.go
appview/repo/repo.go
This file has not been changed.
appview/repo/router.go
appview/repo/router.go
This file has not been changed.
+35
appview/pages/templates/repo/forks.html
+35
appview/pages/templates/repo/forks.html
···
1
+
{{ define "title" }}forks ยท {{ .RepoInfo.FullName }}{{ end }}
2
+
{{ define "repoContent" }}
3
+
<div class="flex flex-col gap-4">
4
+
<h2 class="text-sm uppercase font-bold">Forked by</h2>
5
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
6
+
{{ range .Forks }}
7
+
{{ $handle := resolve .Did }}
8
+
{{ $name := .Name}}
9
+
<div class="border border-gray-200 dark:border-gray-700 rounded p-4">
10
+
<div class="flex items-center gap-3">
11
+
{{ template "user/fragments/picLink" (list .Did "size-10") }}
12
+
<div class="flex-1 min-w-0">
13
+
<a href="/{{ $handle }}" class="block truncate">{{ $handle }}</a>
14
+
<a href="/{{ $handle }}/{{ $name }}" class="block truncate">{{ $name }}</a>
15
+
<p class="text-sm text-gray-500 dark:text-gray-400">
16
+
forked {{ .Created | relTimeFmt }}
17
+
</p>
18
+
</div>
19
+
</div>
20
+
</div>
21
+
{{ end }}
22
+
{{ if eq .TotalCount 0 }}
23
+
<p class="text-gray-500 dark:text-gray-400 col-span-3">No forks yet.</p>
24
+
{{ end }}
25
+
</div>
26
+
{{ if gt .TotalCount .Page.Limit }}
27
+
{{ template "fragments/pagination" (dict
28
+
"Page" .Page
29
+
"TotalCount" .TotalCount
30
+
"BasePath" (printf "/%s/forks" .RepoInfo.FullName)
31
+
"QueryParams" (queryParams)
32
+
) }}
33
+
{{ end }}
34
+
</div>
35
+
{{ end }}
History
6 rounds
0 comments
willdot.net
submitted
#5
1 commit
expand
collapse
appview/repo: show number of forks on repo and link to page of forks
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
merge conflicts detected
expand
collapse
expand
collapse
- appview/db/repos.go:301
- appview/models/repo.go:97
expand 0 comments
willdot.net
submitted
#4
1 commit
expand
collapse
appview/repo: show number of forks on repo and link to page of forks
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
expand 0 comments
willdot.net
submitted
#3
1 commit
expand
collapse
appview/repo: show number of forks on repo and link to page of forks
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
expand 0 comments
willdot.net
submitted
#2
1 commit
expand
collapse
appview/repo: show number of forks on repo and link to page of forks
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
expand 0 comments
willdot.net
submitted
#1
1 commit
expand
collapse
appview/repo: show number of forks on repo and link to page of forks
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
expand 0 comments
willdot.net
submitted
#0
1 commit
expand
collapse
appview/repo: show number of forks on repo and link to page of forks
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>