From 6f241acf2d86a0c1aac0a4f297e3a1e360be01a7 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 19 Aug 2023 22:06:22 +0800 Subject: [PATCH] fix --- modules/templates/helper.go | 1 - templates/user/dashboard/feeds.tmpl | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 8fedc4076a4d..bb1411cbfdb3 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -53,7 +53,6 @@ func NewFuncMap() template.FuncMap { // ----------------------------------------------------------------- // svg / avatar / icon "svg": svg.RenderHTML, - "avatarHTML": AvatarHTML, "EntryIcon": base.EntryIcon, "MigrationIcon": MigrationIcon, "ActionIcon": ActionIcon, diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 24768439f5a2..aad44f57dff4 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -86,7 +86,7 @@ {{range $push.Commits}} {{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
- {{avatarHTML ($push.AvatarLink $.Context .AuthorEmail) 16 "" .AuthorName}} + {{ShortSha .Sha1}} {{RenderCommitMessage $.Context .Message $repoLink $.ComposeMetas}}