diff options
author | zeripath <art27@cantab.net> | 2020-10-30 16:27:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 16:27:01 +0000 |
commit | 68bdb9fd4bf4e8bd358d4b1c6d9e0c4f70307415 (patch) | |
tree | ed09a917905df0375c8327cdfb75fdb2f66bb80f | |
parent | 643a0a691a53a1c13a52edf0a09e8013394b07fe (diff) | |
download | gitea-68bdb9fd4bf4e8bd358d4b1c6d9e0c4f70307415.tar.gz gitea-68bdb9fd4bf4e8bd358d4b1c6d9e0c4f70307415.zip |
Fix links to repositories in /user/setting/repos (#13360)
* Fix links to repositories in /user/setting/repos
somehow the links gained a spurious $ in the links.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* And fix #13359
Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r-- | templates/repo/settings/options.tmpl | 2 | ||||
-rw-r--r-- | templates/user/settings/repos.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index ce76a6fefa..96414731bc 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -284,7 +284,7 @@ </div> </div> - {{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}} + {{if not .IsMirror}} <div class="ui divider"></div> {{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}} diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl index a9d029a2b8..68ed8392fd 100644 --- a/templates/user/settings/repos.tmpl +++ b/templates/user/settings/repos.tmpl @@ -119,7 +119,7 @@ {{else}} <span class="iconFloat">{{svg "octicon-repo"}}</span> {{end}} - <a class="name" href="{{AppSubUrl}}/{{$.OwnerName}}/{{.Name}}">{{$.OwnerName}}/{{.Name}}</a> + <a class="name" href="{{AppSubUrl}}/{{.OwnerName}}/{{.Name}}">{{.OwnerName}}/{{.Name}}</a> <span>{{SizeFmt .Size}}</span> {{if .IsFork}} {{$.i18n.Tr "repo.forked_from"}} |