Skip to content

Commit 79d9cda

Browse files
authored
Fix links to repositories in /user/setting/repos (#13360) (#13362)
* Fix links to repositories in /user/setting/repos somehow the links gained a spurious $ in the links. Signed-off-by: Andrew Thornton <[email protected]> * And fix #13359 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 02edb9d commit 79d9cda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/repo/settings/options.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
</div>
285285
</div>
286286

287-
{{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}}
287+
{{if not .IsMirror}}
288288
<div class="ui divider"></div>
289289
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}}
290290
{{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}

templates/user/settings/repos.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
{{else}}
120120
<span class="iconFloat">{{svg "octicon-repo"}}</span>
121121
{{end}}
122-
<a class="name" href="{{AppSubUrl}}/{{$.OwnerName}}/{{.Name}}">{{$.OwnerName}}/{{.Name}}</a>
122+
<a class="name" href="{{AppSubUrl}}/{{.OwnerName}}/{{.Name}}">{{.OwnerName}}/{{.Name}}</a>
123123
<span>{{SizeFmt .Size}}</span>
124124
{{if .IsFork}}
125125
{{$.i18n.Tr "repo.forked_from"}}

0 commit comments

Comments
 (0)