Browse Source

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>
tags/v1.15.0-dev
zeripath GitHub 4 years ago
parent
commit
ae4445b63f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      templates/repo/settings/options.tmpl
  2. +1
    -1
      templates/user/settings/repos.tmpl

+ 1
- 1
templates/repo/settings/options.tmpl View File

@@ -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}}


+ 1
- 1
templates/user/settings/repos.tmpl View File

@@ -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"}}


Loading…
Cancel
Save