{{/* Template Attributes: * User: The user associated with the commit * Author: The author associated with the commit * Commit: The author associated with the commit * AvatarSize: Avatar size in pixels * AuthorBold: Whether to render the autor as bold text * IsSigned: Whether the user is currently signed in */}}
{{if .User}} {{ctx.AvatarUtils.Avatar .User .AvatarSize}} {{$username := ""}} {{if and .User.FullName DefaultShowFullName}} {{$username = .User.FullName}} {{else if .User.Name}} {{$username = .User.Name}} {{end}} {{$username}} {{else if .Author}} b {{$username := ""}} {{if and .Author .Author.FullName DefaultShowFullName}} {{$username = .Author.FullName}} {{else if .Author.Name}} {{$username = .Author.Name}} {{else if and .Commit .Commit.Author .Commit.Author.Name}} {{$username = .Commit.Author.Name}} {{end}} {{ctx.AvatarUtils.AvatarByEmail .Author.Email $username .AvatarSize}} {{if and .Hack .Author.HomeLink}} {{$username}} {{else}} {{$username}} {{end}} {{else}} {{$username := ""}} {{if and .Commit .Commit.Author .Commit.Author.Name}} {{$username = .Commit.Author.Name}} {{else}} {{$username = .Author.Name}} {{end}} {{ctx.AvatarUtils.AvatarByEmail .Commit.Author.Email $username .AvatarSize}} {{if and .Commit .Commit.Author .Commit.Author.Name}} {{.Commit.Author.Name}} {{else}} {{.Author.Name}} {{end}} {{end}}