2
0

fix: remove double .Repo reference in pinned repos template

This commit is contained in:
2026-01-11 03:26:49 +00:00
parent 525988117f
commit 4e44ac4977

View File

@@ -33,7 +33,7 @@
<div class="content">
<div class="header tw-flex tw-items-center tw-gap-2">
{{if .Repo.Avatar}}
<img class="tw-max-w-20 tw-max-h-20 tw-rounded tw-object-contain" src="{{.Repo.Repo.RelAvatarLink ctx}}" alt="">
<img class="tw-max-w-20 tw-max-h-20 tw-rounded tw-object-contain" src="{{.Repo.RelAvatarLink ctx}}" alt="">
{{else}}
{{if .Repo.IsPrivate}}{{svg "octicon-lock" 16}}{{else if .Repo.IsFork}}{{svg "octicon-repo-forked" 16}}{{else if .Repo.IsMirror}}{{svg "octicon-mirror" 16}}{{else}}{{svg "octicon-repo" 16}}{{end}}
{{end}}
@@ -78,7 +78,7 @@
<div class="content">
<div class="header tw-flex tw-items-center tw-gap-2">
{{if .Repo.Avatar}}
<img class="tw-max-w-20 tw-max-h-20 tw-rounded tw-object-contain" src="{{.Repo.Repo.RelAvatarLink ctx}}" alt="">
<img class="tw-max-w-20 tw-max-h-20 tw-rounded tw-object-contain" src="{{.Repo.RelAvatarLink ctx}}" alt="">
{{else}}
{{if .Repo.IsPrivate}}{{svg "octicon-lock" 16}}{{else if .Repo.IsFork}}{{svg "octicon-repo-forked" 16}}{{else if .Repo.IsMirror}}{{svg "octicon-mirror" 16}}{{else}}{{svg "octicon-repo" 16}}{{end}}
{{end}}