]> source.dussan.org Git - gitea.git/commitdiff
Add handling to branch switcher label to make label more consistent with
authorMichael Dyrynda <michael@nucleus.com.au>
Wed, 3 Sep 2014 00:31:32 +0000 (10:01 +0930)
committerMichael Dyrynda <michael@nucleus.com.au>
Wed, 3 Sep 2014 00:31:32 +0000 (10:01 +0930)
GitHub behaviour

Addresses #431

templates/repo/home.tmpl

index 094730847741b8bbc950d3da2fe278f14971494f..90633cd0ccb454f32fb82ca637dd2c536d59a95a 100644 (file)
@@ -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" .}}