forked from kevadesu/forgejo
feat: Add summary card for repos and releases
This commit is contained in:
parent
f5cfdd80a7
commit
7685a1e98e
11 changed files with 673 additions and 247 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue