From ac6651cf1690958783506f269e4f5fc88c3c786e Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 12 Aug 2025 12:50:22 +0300 Subject: [PATCH] appview: ui: add fork indicator to repoCard adds a fork indicator to the repo lists in the profile, if repo is forked Signed-off-by: Samuel Newman --- .../templates/user/fragments/repoCard.html | 70 +++++++++++-------- 1 file changed, 40 insertions(+), 30 deletions(-) diff --git a/appview/pages/templates/user/fragments/repoCard.html b/appview/pages/templates/user/fragments/repoCard.html index 9bab85b..fd33672 100644 --- a/appview/pages/templates/user/fragments/repoCard.html +++ b/appview/pages/templates/user/fragments/repoCard.html @@ -5,22 +5,32 @@ {{ with $repo }}
-
- {{- if $fullName -}} - {{ index $root.DidHandleMap .Did }}/{{ .Name }} - {{- else -}} - {{ .Name }} - {{- end -}} +
+ {{- if $fullName -}} + {{ index $root.DidHandleMap .Did }}/{{ .Name }} + {{- else -}} + {{ .Name }} + {{- end -}} +
+ {{ if .Source }} +
+ {{ i "git-fork" "w-3 h-3 mr-1" }} + fork +
+ {{ end }} + {{ with .Description }} +
+ {{ . }}
- {{ with .Description }} -
- {{ . }} -
- {{ end }} + {{ end }} - {{ if .RepoStats }} - {{ block "repoStats" .RepoStats }} {{ end }} - {{ end }} + {{ if .RepoStats }} + {{ block "repoStats" .RepoStats }}{{ end }} + {{ end }}
{{ end }} {{ end }} @@ -29,30 +39,30 @@
{{ with .Language }}
-
+
{{ . }}
{{ end }} {{ with .StarCount }} -
- {{ i "star" "w-3 h-3 fill-current" }} - {{ . }} -
+
+ {{ i "star" "w-3 h-3 fill-current" }} + {{ . }} +
{{ end }} {{ with .IssueCount.Open }} -
- {{ i "circle-dot" "w-3 h-3" }} - {{ . }} -
+
+ {{ i "circle-dot" "w-3 h-3" }} + {{ . }} +
{{ end }} {{ with .PullCount.Open }} -
- {{ i "git-pull-request" "w-3 h-3" }} - {{ . }} -
+
+ {{ i "git-pull-request" "w-3 h-3" }} + {{ . }} +
{{ end }}
{{ end }} - - -- 2.43.0