diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-04-16 01:34:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 19:34:43 +0200 |
commit | 8202dd131189102d2531c853665d213e43a5c818 (patch) | |
tree | 33fdf41bb1387611a7014d2335ab620628200e82 /templates | |
parent | f44543a1bb776fa8bdfd3b605d67197d1466eb20 (diff) | |
download | gitea-8202dd131189102d2531c853665d213e43a5c818.tar.gz gitea-8202dd131189102d2531c853665d213e43a5c818.zip |
Performance improvement for list pull requests (#15447)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/shared/issuelist.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index d6cd60cbd2..d07295aa67 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -62,12 +62,12 @@ {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}} {{end}} {{if and .Milestone (ne $.listType "milestone")}} - <a class="milestone" {{if $.RepoLink}}href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}"{{else}}href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/milestone/{{.Milestone.ID}}"{{end}}> + <a class="milestone" {{if $.RepoLink}}href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}"{{else}}href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/milestone/{{.Milestone.ID}}"{{end}}> {{svg "octicon-milestone" 14 "mr-2"}}{{.Milestone.Name}} </a> {{end}} {{if .Ref}} - <a class="ref" {{if $.RepoLink}}href="{{$.RepoLink}}{{index $.IssueRefURLs .ID}}"{{else}}href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}{{index $.IssueRefURLs .ID}}"{{end}}> + <a class="ref" {{if $.RepoLink}}href="{{$.RepoLink}}{{index $.IssueRefURLs .ID}}"{{else}}href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{index $.IssueRefURLs .ID}}"{{end}}> {{svg "octicon-git-branch" 14 "mr-2"}}{{index $.IssueRefEndNames .ID}} </a> {{end}} |