GitHub behaviour
Addresses #431
<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>
{{template "repo/sidebar" .}}
</div>
</div>
-{{template "ng/base/footer" .}}
\ No newline at end of file
+{{template "ng/base/footer" .}}