瀏覽代碼

Fix template bug (#27581) (#29446)

Fix #29152
Backport #27581
tags/v1.21.8
Lunny Xiao 3 月之前
父節點
當前提交
dc48eb070b
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      templates/user/dashboard/feeds.tmpl

+ 2
- 1
templates/user/dashboard/feeds.tmpl 查看文件

@@ -83,6 +83,7 @@
{{if .GetOpType.InActions "commit_repo" "mirror_sync_push"}}
{{$push := ActionContent2Commits .}}
{{$repoLink := (.GetRepoLink ctx)}}
{{$repo := .Repo}}
<div class="gt-df gt-fc gt-gap-2">
{{range $push.Commits}}
{{$commitLink := printf "%s/commit/%s" $repoLink .Sha1}}
@@ -90,7 +91,7 @@
<img class="ui avatar" src="{{$push.AvatarLink $.Context .AuthorEmail}}" title="{{.AuthorName}}" width="16" height="16">
<a class="ui sha label" href="{{$commitLink}}">{{ShortSha .Sha1}}</a>
<span class="text truncate">
{{RenderCommitMessage $.Context .Message $.ComposeMetas}}
{{RenderCommitMessage $.Context .Message $repo.ComposeMetas}}
</span>
</div>
{{end}}

Loading…
取消
儲存