diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index db163410c..f1445c580 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -781,7 +781,8 @@ func checkCitationFile(ctx *context.Context, entry *git.TreeEntry) { if content, err := entry.Blob().GetBlobContent(setting.UI.MaxDisplayFileSize); err != nil { log.Error("checkCitationFile: GetBlobContent: %v", err) } else { - ctx.Data["CitiationExist"] = true + ctx.Data["CitationExist"] = true + ctx.Data["CitationFile"] = entry.Name() ctx.PageData["citationFileContent"] = content break } diff --git a/templates/repo/cite/cite_modal.tmpl b/templates/repo/cite/cite_modal.tmpl index fb251442c..1ce959a5c 100644 --- a/templates/repo/cite/cite_modal.tmpl +++ b/templates/repo/cite/cite_modal.tmpl @@ -6,7 +6,7 @@