From 68bdb9fd4bf4e8bd358d4b1c6d9e0c4f70307415 Mon Sep 17 00:00:00 2001 From: zeripath Date: Fri, 30 Oct 2020 16:27:01 +0000 Subject: [PATCH] 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 * And fix #13359 Signed-off-by: Andrew Thornton --- templates/repo/settings/options.tmpl | 2 +- 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 ce76a6fefa4..96414731bc9 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -284,7 +284,7 @@ - {{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}} + {{if not .IsMirror}}
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}} diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl index a9d029a2b8d..68ed8392fd9 100644 --- a/templates/user/settings/repos.tmpl +++ b/templates/user/settings/repos.tmpl @@ -119,7 +119,7 @@ {{else}} {{svg "octicon-repo"}} {{end}} - {{$.OwnerName}}/{{.Name}} + {{.OwnerName}}/{{.Name}} {{SizeFmt .Size}} {{if .IsFork}} {{$.i18n.Tr "repo.forked_from"}}