mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 08:59:31 -05:00
Remove avatarHTML from template helpers (#26598)
The HTML code is more readable and more correct (it needs `"ui avatar"` class) Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
parent
8cf3b61fb9
commit
0731abc444
2 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,6 @@ func NewFuncMap() template.FuncMap {
|
||||||
// -----------------------------------------------------------------
|
// -----------------------------------------------------------------
|
||||||
// svg / avatar / icon
|
// svg / avatar / icon
|
||||||
"svg": svg.RenderHTML,
|
"svg": svg.RenderHTML,
|
||||||
"avatarHTML": AvatarHTML,
|
|
||||||
"EntryIcon": base.EntryIcon,
|
"EntryIcon": base.EntryIcon,
|
||||||
"MigrationIcon": MigrationIcon,
|
"MigrationIcon": MigrationIcon,
|
||||||
"ActionIcon": ActionIcon,
|
"ActionIcon": ActionIcon,
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
{{range $push.Commits}}
|
{{range $push.Commits}}
|
||||||
{{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
|
{{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
|
||||||
<div class="flex-item">
|
<div class="flex-item">
|
||||||
{{avatarHTML ($push.AvatarLink $.Context .AuthorEmail) 16 "" .AuthorName}}
|
<img class="ui avatar" src="{{$push.AvatarLink $.Context .AuthorEmail}}" title="{{.AuthorName}}" width="16" height="16">
|
||||||
<a class="commit-id" href="{{$commitLink}}">{{ShortSha .Sha1}}</a>
|
<a class="commit-id" href="{{$commitLink}}">{{ShortSha .Sha1}}</a>
|
||||||
<span class="text truncate light grey">
|
<span class="text truncate light grey">
|
||||||
{{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}}
|
{{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}}
|
||||||
|
|
Loading…
Reference in a new issue