summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-09-03 10:33:08 -0400
committer无闻 <joe2010xtmf@163.com>2014-09-03 10:33:08 -0400
commit87b442433c8280672ed77eb5dbcd4b2c0cd3157e (patch)
treeecbd025f00100f76e5fcba8b9301a0506ec7fc6b
parent097f1b57593979dbfbd3ff7470992f6a6b333d5c (diff)
parentdcb10a41d4fa7abf2554955cdf3abbcea055adfd (diff)
downloadgitea-87b442433c8280672ed77eb5dbcd4b2c0cd3157e.tar.gz
gitea-87b442433c8280672ed77eb5dbcd4b2c0cd3157e.zip
Merge pull request #432 from deringer/dev
Add handling to branch switcher label to make label more consistent with
-rw-r--r--templates/repo/home.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 0947308477..90633cd0cc 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -17,7 +17,7 @@
<li id="repo-branch-switch" class="down drop">
<a href="#">
<button class="btn btn-gray btn-small btn-radius">
- <i class="octicon octicon-git-branch"></i> Branch :
+ <i class="octicon octicon-git-branch"></i> {{if .IsViewBranch}}Branch{{else}}Tree{{end}}:
<strong id="repo-branch-current">{{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}</strong>
</button>
</a>
@@ -75,4 +75,4 @@
{{template "repo/sidebar" .}}
</div>
</div>
-{{template "ng/base/footer" .}} \ No newline at end of file
+{{template "ng/base/footer" .}}