appview: ui: add fork indicator to repoCard #472

merged
opened by samuel.fm targeting master from samuel.fm/core: samuel/fork-indicator

adds a fork indicator to the repo lists in the profile, if repo is forked. just the icon + the word "fork"

screenshot of the repo list

ideally this would have the source repo's name/author, but I don't quite understand how you'd thread that data down :/

Changed files
+1 -1
appview
pages
templates
layouts
+1 -1
appview/pages/templates/layouts/repobase.html
··· 5 5 {{ if .RepoInfo.Source }} 6 6 <p class="text-sm"> 7 7 <div class="flex items-center"> 8 - {{ i "git-fork" "w-3 h-3 mr-1"}} 8 + {{ i "git-fork" "w-3 h-3 mr-1 shrink-0" }} 9 9 forked from 10 10 {{ $sourceOwner := didOrHandle .RepoInfo.Source.Did .RepoInfo.SourceHandle }} 11 11 <a class="ml-1 underline" href="/{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}">{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}</a>