mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-19 05:13:59 +08:00
style: better popups
This commit is contained in:
parent
d460a5cdc0
commit
d6acba16e8
|
@ -43,7 +43,6 @@ import (
|
||||||
repo_module "code.gitea.io/gitea/modules/repository"
|
repo_module "code.gitea.io/gitea/modules/repository"
|
||||||
"code.gitea.io/gitea/modules/setting"
|
"code.gitea.io/gitea/modules/setting"
|
||||||
api "code.gitea.io/gitea/modules/structs"
|
api "code.gitea.io/gitea/modules/structs"
|
||||||
"code.gitea.io/gitea/modules/templates"
|
|
||||||
"code.gitea.io/gitea/modules/templates/vars"
|
"code.gitea.io/gitea/modules/templates/vars"
|
||||||
"code.gitea.io/gitea/modules/timeutil"
|
"code.gitea.io/gitea/modules/timeutil"
|
||||||
"code.gitea.io/gitea/modules/util"
|
"code.gitea.io/gitea/modules/util"
|
||||||
|
@ -152,12 +151,11 @@ func dependenciesToHTML(ctx *context.Context, dependencies []*issues_model.Depen
|
||||||
if index != 0 {
|
if index != 0 {
|
||||||
htmlCode += `<span>,</span>`
|
htmlCode += `<span>,</span>`
|
||||||
}
|
}
|
||||||
anchorClasses := "gt-ml-2"
|
anchorClasses := "gt-ml-2 ref-issue"
|
||||||
if dependency.Issue.IsClosed {
|
if dependency.Issue.IsClosed {
|
||||||
anchorClasses += " gt-line-through"
|
anchorClasses += " gt-line-through"
|
||||||
}
|
}
|
||||||
htmlCode += fmt.Sprintf(`<a href="%s" data-tooltip-content="#%d %s" class="%s">#%d</a>`,
|
htmlCode += fmt.Sprintf(`<a href="%s" class="%s">#%d</a>`, dependency.Issue.Link(), anchorClasses, dependency.Issue.Index)
|
||||||
dependency.Issue.Link(), dependency.Issue.Index, templates.RenderEmoji(ctx, dependency.Issue.Title), anchorClasses, dependency.Issue.Index)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return template.HTML(htmlCode + "</span>")
|
return template.HTML(htmlCode + "</span>")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user