summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2018-02-25 05:17:59 +0800
committerLauris BH <lauris@nix.lv>2018-02-24 23:17:59 +0200
commitfc265b036f6441f8b738cf32c85fd1193b5dd2f0 (patch)
tree0adc9d1a0adffbee8be96398a2810143aeb64da7
parentd2d0aea8a1440e54d35a9c2fb1c868071cd340d8 (diff)
downloadgitea-fc265b036f6441f8b738cf32c85fd1193b5dd2f0.tar.gz
gitea-fc265b036f6441f8b738cf32c85fd1193b5dd2f0.zip
feat: Add branch link in branch list. (#3576)
-rw-r--r--templates/repo/branch/list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl
index bc00d0d717..cd6afce912 100644
--- a/templates/repo/branch/list.tmpl
+++ b/templates/repo/branch/list.tmpl
@@ -38,10 +38,10 @@
<tr>
<td>
{{if .IsDeleted}}
- <s>{{.Name}}</s>
+ <s><a href="{{$.RepoLink}}/src/branch/{{.Name}}">{{.Name}}</a></s>
<p class="time">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
{{else}}
- {{.Name}}
+ <a href="{{$.RepoLink}}/src/branch/{{.Name}}">{{.Name}}</a>
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
</td>
{{end}}