Monorepo for Tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/repo: show number of forks on repo and link to page of forks #4

open opened by willdot.net targeting master from show-repo-fork-counts

Signed-off-by: Will did:plc:dadhhalkfcq3gucaq25hjqon

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:dadhhalkfcq3gucaq25hjqon/sh.tangled.repo.pull/3mlghsm3w6x22
+35
Interdiff #1 โ†’ #2
appview/db/repos.go

This file has not been changed.

appview/pages/pages.go

This file has not been changed.

appview/pages/templates/layouts/repobase.html

This file has not been changed.

appview/repo/repo.go

This file has not been changed.

appview/repo/router.go

This file has not been changed.

+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
sign up or login to add to the discussion
1 commit
expand
appview/repo: show number of forks on repo and link to page of forks
merge conflicts detected
expand
  • appview/db/repos.go:301
  • appview/models/repo.go:97
expand 0 comments
1 commit
expand
appview/repo: show number of forks on repo and link to page of forks
expand 0 comments
1 commit
expand
appview/repo: show number of forks on repo and link to page of forks
expand 0 comments
1 commit
expand
appview/repo: show number of forks on repo and link to page of forks
expand 0 comments
1 commit
expand
appview/repo: show number of forks on repo and link to page of forks
expand 0 comments
1 commit
expand
appview/repo: show number of forks on repo and link to page of forks
expand 0 comments