diff options
author | kaajavi <javierguignard@gmail.com> | 2018-03-06 18:35:24 -0300 |
---|---|---|
committer | jc <u@gogs.io> | 2018-03-06 16:35:24 -0500 |
commit | ca874ba8c74d045b85bd54e6c808ad10937f9598 (patch) | |
tree | 4574ce43b9db31ee6056c0741bbcc608dcf99a34 | |
parent | f274f766074ba7af0365d1032831d3328f2a9666 (diff) |
templates/repo: fix wrong branch url in branches view (#4902)
-rw-r--r-- | templates/repo/branches/all.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/branches/all.tmpl b/templates/repo/branches/all.tmpl index d4ea3076..42c67bc3 100644 --- a/templates/repo/branches/all.tmpl +++ b/templates/repo/branches/all.tmpl @@ -12,7 +12,7 @@ {{range .Branches}} <div class="item ui grid"> <div class="ui eleven wide column"> - {{if .IsProtected}}<i class="octicon octicon-shield"></i> {{end}}<a class="markdown" href="{{$.RepoLink}}/src/{{.Name}}"><code>{{.Name}}</code></a> + {{if .IsProtected}}<i class="octicon octicon-shield"></i> {{end}}<a class="markdown" href="{{$.RepoLink}}/src/{{EscapePound .Name}}"><code>{{.Name}}</code></a> {{$timeSince := TimeSince .Commit.Committer.When $.Lang}} <span class="ui text light grey">{{$.i18n.Tr "repo.branches.updated_by" $timeSince .Commit.Committer.Name | Safe}}</span> </div> |