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 @@ -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
- {{ with .Description }} -
- {{ . }} -
- {{ end }} + {{ end }} + {{ with .Description }} +
+ {{ . }} +
+ {{ 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 }} - -