1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 18:14:28 +00:00

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 <art27@cantab.net>

* And fix #13359

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath 2020-10-30 17:51:52 +00:00 committed by GitHub
parent 02edb9df52
commit 79d9cda993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@
</div> </div>
</div> </div>
{{if and (not .IsMirror) (.Repository.UnitEnabled $.UnitTypePullRequests)}} {{if not .IsMirror}}
<div class="ui divider"></div> <div class="ui divider"></div>
{{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}} {{$pullRequestEnabled := .Repository.UnitEnabled $.UnitTypePullRequests}}
{{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}}

View File

@ -119,7 +119,7 @@
{{else}} {{else}}
<span class="iconFloat">{{svg "octicon-repo"}}</span> <span class="iconFloat">{{svg "octicon-repo"}}</span>
{{end}} {{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> <span>{{SizeFmt .Size}}</span>
{{if .IsFork}} {{if .IsFork}}
{{$.i18n.Tr "repo.forked_from"}} {{$.i18n.Tr "repo.forked_from"}}