You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
2.7 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. <div id="repo-toolbar">
  2. <div class="container">
  3. <nav class="navbar navbar-toolbar navbar-default" role="navigation">
  4. <div class="collapse navbar-collapse">
  5. <ul class="nav navbar-nav">
  6. <li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="/{{.RepositoryLink}}">Source</a></li>
  7. {{if not .IsBareRepo}}
  8. <li class="{{if .IsRepoToolbarCommits}}active{{end}}"><a href="/{{.RepositoryLink}}/commits/{{.Branchname}}">Commits</a></li>
  9. <!-- <li class="{{if .IsRepoToolbarBranches}}active{{end}}"><a href="/{{.RepositoryLink}}/branches">Branches</a></li> -->
  10. <!-- <li class="{{if .IsRepoToolbarPulls}}active{{end}}"><a href="/{{.RepositoryLink}}/pulls">Pull Requests</a></li> -->
  11. <li class="{{if .IsRepoToolbarIssues}}active{{end}}"><a href="/{{.RepositoryLink}}/issues">Issues <!--<span class="badge">42</span>--></a></li>
  12. {{if .IsRepoToolbarIssues}}
  13. <li class="tmp">{{if .IsRepoToolbarIssuesList}}<a href="/{{.RepositoryLink}}/issues/new">
  14. <button class="btn btn-primary btn-sm">New Issue</button>
  15. </a>{{else}}<a href="/{{.RepositoryLink}}/issues">
  16. <button class="btn btn-primary btn-sm">Issues List</button>
  17. </a>{{end}}</li>
  18. {{end}}
  19. <!-- <li class="dropdown">
  20. <a href="#" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a>
  21. <ul class="dropdown-menu">
  22. <li><a href="/{{.RepositoryLink}}/release">Release</a></li>
  23. <li><a href="//{{.RepositoryLink}}/wiki">Wiki</a></li>
  24. </ul>
  25. </li> -->{{end}}
  26. </ul>
  27. <ul class="nav navbar-nav navbar-right">
  28. {{if not .IsBareRepo}}
  29. <!-- <li class="dropdown">
  30. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Statistic <b class="caret"></b></a>
  31. <ul class="dropdown-menu">
  32. <li><a href="#">Graphic</a></li>
  33. <li><a href="#">Pulse</a></li>
  34. <li><a href="#">Network</a></li>
  35. </ul>
  36. </li> -->{{end}}{{if .IsRepositoryOwner}}
  37. <li class="{{if .IsRepoToolbarSetting}}active{{end}}"><a href="/{{.RepositoryLink}}/settings">Settings</a>
  38. </li>{{end}}
  39. </ul>
  40. </div>
  41. </nav>
  42. </div>
  43. </div>