Skip to content

Commit ce0c168

Browse files
committed
remove unused call to $.HeadRepo in view_title template
This is only populated in `ParseCompareInfo` which is called in two handlers: * `CompareAndPullRequestPost` - a JSON post handler that doesn't render templates * `CompareDiff` - which can render diff/box.tmpl and diff/compare.tmpl
1 parent 9206fbb commit ce0c168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/issue/view_title.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
{{$sameBase := ne $.BaseName $.HeadUserName}}
103103
{{$differentBranch := ne . $.HeadBranch}}
104104
{{if or $sameBase $differentBranch}}
105-
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-branch="{{.}}">{{$.BaseName}}{{if $.HeadRepo}}/{{$.HeadRepo}}{{end}}:{{.}}</div>
105+
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-branch="{{.}}">{{$.BaseName}}:{{.}}</div>
106106
{{end}}
107107
{{end}}
108108
</div>

0 commit comments

Comments
 (0)