feat: Add summary card for repos and releases

This commit is contained in:
JakobDev 2024-12-14 19:36:09 +01:00
parent f5cfdd80a7
commit 7685a1e98e
No known key found for this signature in database
GPG key ID: 39DEF62C3ED6DC4C
11 changed files with 673 additions and 247 deletions

View file

@ -632,6 +632,8 @@ func RepoAssignment(ctx *Context) context.CancelFunc {
ctx.Data["IsStaringRepo"] = repo_model.IsStaring(ctx, ctx.Doer.ID, repo.ID)
}
ctx.Data["OpenGraphImageURL"] = repo.SummaryCardURL()
if repo.IsFork {
RetrieveBaseRepo(ctx, repo)
if ctx.Written() {