diff options
author | Michael Dyrynda <michael@nucleus.com.au> | 2014-09-03 10:01:32 +0930 |
---|---|---|
committer | Michael Dyrynda <michael@nucleus.com.au> | 2014-09-03 10:01:32 +0930 |
commit | dcb10a41d4fa7abf2554955cdf3abbcea055adfd (patch) | |
tree | fd83a37096fa6a5e7a32a0a5ed5192dfa7995b68 | |
parent | 05a33107c98de3f0f6ba437abdfb7f3b15a64c26 (diff) |
Add handling to branch switcher label to make label more consistent with
GitHub behaviour
Addresses #431
-rw-r--r-- | templates/repo/home.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 09473084..90633cd0 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" .}} |