From 36949a45ac485ddc41e9135c2bca9608b62dee1a Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 13 Aug 2025 16:50:41 +0000 Subject: [PATCH] appview: ui: signify forks with icon, adjust layout non-forked repos show a book icon, forked repos show a fork icon Signed-off-by: Samuel Newman --- appview/pages/templates/layouts/repobase.html | 2 +- appview/pages/templates/user/fragments/repoCard.html | 23 ++++++++++------------- 2 file(s) changed, 11 insertion(s)(+), 14 deletion(s)(-) diff --git a/appview/pages/templates/layouts/repobase.html b/appview/pages/templates/layouts/repobase.html --- a/appview/pages/templates/layouts/repobase.html +++ b/appview/pages/templates/layouts/repobase.html @@ -5,7 +5,7 @@ {{ if .RepoInfo.Source }}

- {{ i "git-fork" "w-3 h-3 mr-1"}} + {{ i "git-fork" "w-3 h-3 mr-1 shrink-0" }} forked from {{ $sourceOwner := didOrHandle .RepoInfo.Source.Did .RepoInfo.SourceHandle }} {{ $sourceOwner }}/{{ .RepoInfo.Source.Name }} diff --git a/appview/pages/templates/user/fragments/repoCard.html b/appview/pages/templates/user/fragments/repoCard.html --- a/appview/pages/templates/user/fragments/repoCard.html +++ b/appview/pages/templates/user/fragments/repoCard.html @@ -4,8 +4,13 @@ {{ $fullName := index . 2 }} {{ with $repo }} -
-
+
+
+ {{ if .Source }} + {{ i "git-fork" "w-4 h-4 mr-1.5 shrink-0" }} + {{ else }} + {{ i "book-marked" "w-4 h-4 mr-1.5 shrink-0" }} + {{ end }} {{- if $fullName -}} {{ index $root.DidHandleMap .Did }}/{{ .Name }} {{- end -}}
- {{ if .Source }} -
- {{ i "git-fork" "w-3 h-3 mr-1" }} - fork -
- {{ end }} {{ with .Description }}
{{ . }} @@ -36,13 +35,11 @@ {{ end }} {{ define "repoStats" }} -
+
{{ with .Language }}
-
+
{{ . }}
{{ end }} -- tangled.sh