mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-16 22:15:43 +08:00
cleanup
This commit is contained in:
parent
2a9caf1d2c
commit
bcfd01dea7
@ -19,18 +19,17 @@
|
|||||||
{{$username}}
|
{{$username}}
|
||||||
</a>
|
</a>
|
||||||
{{else if .Author}}
|
{{else if .Author}}
|
||||||
b
|
|
||||||
{{$username := ""}}
|
{{$username := ""}}
|
||||||
{{if and .Author .Author.FullName DefaultShowFullName}}
|
{{if and .Author.FullName DefaultShowFullName}}
|
||||||
{{$username = .Author.FullName}}
|
{{$username = .Author.FullName}}
|
||||||
{{else if .Author.Name}}
|
{{else if .Author.Name}}
|
||||||
{{$username = .Author.Name}}
|
{{$username = .Author.Name}}
|
||||||
{{else if and .Commit .Commit.Author .Commit.Author.Name}}
|
{{else if .Commit.Author.Name}}
|
||||||
{{$username = .Commit.Author.Name}}
|
{{$username = .Commit.Author.Name}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ctx.AvatarUtils.AvatarByEmail .Author.Email $username .AvatarSize}}
|
{{ctx.AvatarUtils.AvatarByEmail .Author.Email $username .AvatarSize}}
|
||||||
<span{{if .IsSigned}} title="{{.Author.Email}}"{{end}}>
|
<span{{if .IsSigned}} title="{{.Author.Email}}"{{end}}>
|
||||||
{{if and .Hack .Author.HomeLink}}
|
{{if .Author.HomeLink}}
|
||||||
<a class="muted author-wrapper" href="{{.Author.HomeLink}}">
|
<a class="muted author-wrapper" href="{{.Author.HomeLink}}">
|
||||||
{{$username}}
|
{{$username}}
|
||||||
</a>
|
</a>
|
||||||
@ -40,14 +39,14 @@
|
|||||||
</span>
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{$username := ""}}
|
{{$username := ""}}
|
||||||
{{if and .Commit .Commit.Author .Commit.Author.Name}}
|
{{if .Commit.Author.Name}}
|
||||||
{{$username = .Commit.Author.Name}}
|
{{$username = .Commit.Author.Name}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{$username = .Author.Name}}
|
{{$username = .Author.Name}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ctx.AvatarUtils.AvatarByEmail .Commit.Author.Email $username .AvatarSize}}
|
{{ctx.AvatarUtils.AvatarByEmail .Commit.Author.Email $username .AvatarSize}}
|
||||||
<span{{if .IsSigned}} title="{{.Commit.Author.Email}}"{{end}}>
|
<span{{if .IsSigned}} title="{{.Commit.Author.Email}}"{{end}}>
|
||||||
{{if and .Commit .Commit.Author .Commit.Author.Name}}
|
{{if .Commit.Author.Name}}
|
||||||
{{.Commit.Author.Name}}
|
{{.Commit.Author.Name}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.Author.Name}}
|
{{.Author.Name}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user