Browse Source

Merge pull request #432 from deringer/dev

Add handling to branch switcher label to make label more consistent with
pull/435/head
无闻 10 years ago
parent
commit
87b442433c
  1. 2
      templates/repo/home.tmpl

2
templates/repo/home.tmpl

@ -17,7 +17,7 @@
<li id="repo-branch-switch" class="down drop"> <li id="repo-branch-switch" class="down drop">
<a href="#"> <a href="#">
<button class="btn btn-gray btn-small btn-radius"> <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> <strong id="repo-branch-current">{{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}</strong>
</button> </button>
</a> </a>

Loading…
Cancel
Save