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.

77 lines
4.3 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="repo-wrapper">
  4. {{template "repo/header" .}}
  5. <div id="repo-content" class="clear container">
  6. <div id="repo-main" class="left grid-4-5">
  7. <p id="repo-desc">
  8. <span class="description">{{.Repository.DescriptionHtml}}</span>
  9. <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
  10. </p>
  11. <ul id="repo-file-nav" class="clear menu menu-line">
  12. <li>
  13. <a href="#">
  14. <button class="btn btn-green btn-small btn-radius" id="repo-compare-btn"><i class="octicon octicon-git-compare"></i></button>
  15. </a>
  16. </li>
  17. <li id="repo-branch-switch" class="down drop">
  18. <a href="#">
  19. <button class="btn btn-gray btn-small btn-radius">
  20. <i class="octicon octicon-git-branch"></i> Branch :
  21. <strong id="repo-branch-current">{{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}</strong>
  22. </button>
  23. </a>
  24. <div class="drop-down panel">
  25. <p class="panel-header text-bold">Branches & Tags</p>
  26. <input id="repo-branch-filter-ipt" class="ipt ipt-large" type="text" placeholder="find branches / tags"/>
  27. <div id="repo-branch-tag">
  28. <ul class="menu menu-line tab-nav clear" id="repo-branch-tab-nav">
  29. <li class="js-tab-nav js-tab-nav-show left" data-tab-target="#repo-branch-list"><a href="#">Branches</a></li>
  30. <li class="js-tab-nav left" data-tab-target="#repo-tag-list"><a href="#">Tags</a></li>
  31. </ul>
  32. <ul class="menu menu-vertical switching-list" id="repo-branch-list">
  33. {{range .Branches}}
  34. <li {{if eq . $.BranchName}}class="checked"{{end}}><a href="{{$.RepoLink}}/src/{{.}}"><i class="octicon octicon-check"></i>{{.}}</a></li>
  35. {{end}}
  36. </ul>
  37. <ul class="menu menu-vertical switching-list" id="repo-tag-list">
  38. <li><a href="#"><i class="octicon octicon-check"></i>0.3.3</a></li>
  39. <li><a href="#"><i class="octicon octicon-check"></i>0.4.4</a></li>
  40. <li class="checked"><a href="#"><i class="octicon octicon-check"></i>0.1</a></li>
  41. <li><a href="#"><i class="octicon octicon-check"></i>0.1 beta</a></li>
  42. </ul>
  43. </div>
  44. </div>
  45. </li>
  46. <li id="repo-bread" class="breads">
  47. <a class="title bread" href="{{.RepoLink}}">{{.Repository.Name}}</a>
  48. {{ $n := len .Treenames}}
  49. {{ $l := Subtract $n 1}}
  50. {{range $i, $v := .Treenames}}
  51. {{if eq $i $l}}
  52. <span class="bread">{{$v}}</span>
  53. {{else}}
  54. <span class="bread"><a href="{{$.BranchLink}}/{{index $.Paths $i}}">{{$v}}</a></span>
  55. {{end}}
  56. {{end}}
  57. </li>
  58. <li id="repo-commits-jump" class="repo-jump right">
  59. <a href="#">
  60. <button class="btn btn-small btn-gray btn-right-radius"><i class="octicon octicon-git-commit"></i></button>
  61. </a>
  62. </li>
  63. <li id="repo-find-jump" class="repo-jump right">
  64. <a href="#">
  65. <button class="btn btn-small btn-gray btn-left-radius"><i class="octicon octicon-list-unordered"></i></button>
  66. </a>
  67. </li>
  68. </ul>
  69. {{if .IsFile}}
  70. {{template "repo/view_file" .}}
  71. {{else}}
  72. {{template "repo/view_list" .}}
  73. {{end}}
  74. </div>
  75. {{template "repo/sidebar" .}}
  76. </div>
  77. </div>
  78. {{template "ng/base/footer" .}}