mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 14:07:52 +01:00
remove unused call to $.HeadRepo in view_title template (#32317)
This is only populated in [`ParseCompareInfo`](https://github.com/search?q=repo%3Ago-gitea%2Fgitea%20%20.Data%5B%22HeadRepo%22%5D&type=code) which is called in two handlers: * [`CompareAndPullRequestPost`](9206fbb55f/routers/web/repo/pull.go (L1246)
) - a JSON post handler that doesn't render templates * [`CompareDiff`](9206fbb55f/routers/web/repo/compare.go (L706)
) - which can render `diff/box.tmpl` and `diff/compare.tmpl`
This commit is contained in:
parent
feca8802b8
commit
1cd3f69859
@ -102,7 +102,7 @@
|
|||||||
{{$sameBase := ne $.BaseName $.HeadUserName}}
|
{{$sameBase := ne $.BaseName $.HeadUserName}}
|
||||||
{{$differentBranch := ne . $.HeadBranch}}
|
{{$differentBranch := ne . $.HeadBranch}}
|
||||||
{{if or $sameBase $differentBranch}}
|
{{if or $sameBase $differentBranch}}
|
||||||
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-branch="{{.}}">{{$.BaseName}}{{if $.HeadRepo}}/{{$.HeadRepo}}{{end}}:{{.}}</div>
|
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-branch="{{.}}">{{$.BaseName}}:{{.}}</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user