don't pass .Author where it is invalid

pull/36094/head
silverwind 2025-12-11 02:48:26 +07:00
parent c1bbb6b74c
commit 2a9caf1d2c
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
4 changed files with 6 additions and 6 deletions

@ -1,7 +1,7 @@
{{/* Template Attributes:
* User: The user associated with the commit
* Author: The author associated with the commit
* Commit: The author associated with the commit
* User: The user associated with the commit, if any
* Commit: The commit
* Author: The author, currently only the commit page passes this
* AvatarSize: Avatar size in pixels
* AuthorBold: Whether to render the autor as bold text
* IsSigned: Whether the user is currently signed in

@ -129,8 +129,8 @@
<div class="ui bottom attached segment flex-text-block tw-flex-wrap">
{{template "repo/commit_author" (dict
"Author" .Author
"Commit" .Commit
"Author" .Author
"AvatarSize" 20
"AuthorBold" true
"IsSigned" $.IsSigned

@ -16,8 +16,8 @@
<td class="author">
<div class="tw-flex">
{{template "repo/commit_author" (dict
"Commit" .
"User" .User
"Author" .Author
"AvatarSize" 28
"IsSigned" $.IsSigned
)}}

@ -4,7 +4,7 @@
{{else}}
{{template "repo/commit_author" (dict
"User" .LatestCommitUser
"Author" .LatestCommit.Author
"Commit" .LatestCommit
"AvatarSize" 24
"AuthorBold" true
"IsSigned" $.IsSigned