diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -100,7 +100,10 @@ {{ if $did }} {{ template "user/fragments/picHandleLink" $did }} {{ else }} - {{ $name }} + + {{ placeholderAvatar "tiny" }} + {{ $name }} + {{ end }} {{ end }} diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -254,7 +254,7 @@ {{ define "attribution" }} {{ $commit := index . 0 }} {{ $map := index . 1 }} - + {{ $author := index $map $commit.Author.Email }} {{ $coauthors := $commit.CoAuthors }} {{ $all := list }} @@ -269,7 +269,11 @@ {{ $all = append $all $co }} {{ end }} {{ end }} - {{ template "fragments/tinyAvatarList" (dict "all" $all "classes" "size-6") }} + {{ if $author }} + {{ template "fragments/tinyAvatarList" (dict "all" $all "classes" "size-6") }} + {{ else }} + {{ placeholderAvatar "tiny" }} + {{ end }} {{ if $author }}{{ resolve $author }}{{ else }}{{ $commit.Author.Name }}{{ end }} diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -186,7 +186,11 @@ {{ $all = append $all $co }} {{ end }} {{ end }} - {{ template "fragments/tinyAvatarList" (dict "all" $all "classes" "size-6") }} + {{ if $author }} + {{ template "fragments/tinyAvatarList" (dict "all" $all "classes" "size-6") }} + {{ else }} + {{ placeholderAvatar "tiny" }} + {{ end }} {{ if $author }}{{ resolve $author }}{{ else }}{{ $commit.Author.Name }}{{ end }}