header.tmpl 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <div id="repo-header" class="clear">
  2. <div class="container clear">
  3. <h1 id="repo-header-name" class="left public">
  4. <i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else if .Repository.IsMirror}}repo-clone{{else}}repo{{end}}"></i>
  5. <a class="author" href="/{{.Owner.Name}}">{{.Owner.Name}}</a>
  6. <span class="divider">/</span>
  7. <a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a>
  8. {{if .Repository.IsMirror}}<span class="label label-gray">{{.i18n.Tr "mirror"}}</span>{{end}}
  9. </h1>
  10. <ul id="repo-header-meta" class="right menu menu-line">
  11. <li id="repo-header-download" class="inline-block down drop">
  12. <a id="repo-header-download-btn" href="#">
  13. <button class="btn btn-black text-bold btn-radius">
  14. <i class="octicon octicon-cloud-download"></i>
  15. </button>
  16. </a>
  17. <div id="repo-header-download-drop" class="drop-down">
  18. <div id="repo-clone" class="clear">
  19. <button id="repo-clone-ssh" class="btn btn-blue current left left btn-left-radius">SSH</button>
  20. <button id="repo-clone-https" class="btn btn-gray left">HTTPS</button>
  21. <input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" />
  22. <button id="repo-clone-copy" class="btn btn-black left btn-right-radius">Copy</button>
  23. <p class="text-center" id="repo-clone-help">Need help cloning? Visit <a target="_blank" href="http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository">Help</a>!</p>
  24. <hr/>
  25. <div class="text-center" id="repo-clone-zip">
  26. <a class="btn btn-green btn-radius" href="{{.RepoLink}}/archive/{{.BranchName}}.zip"><i class="octicon octicon-file-zip"></i>ZIP</a>
  27. <a class="btn btn-green btn-radius" href="{{.RepoLink}}/archive/{{.BranchName}}.tar.gz"><i class="octicon octicon-file-zip"></i>TAR.GZ</a>
  28. </div>
  29. </div>
  30. </div>
  31. </li>
  32. <li id="repo-header-watch">
  33. <a id="repo-header-watch-btn" href="#">
  34. <button class="btn btn-gray text-bold btn-radius">
  35. <i class="octicon octicon-eye-watch"></i>{{if .IsWatchingRepo}}Unwatch{{else}}Watch{{end}}
  36. <span class="num">{{.Repository.NumWatches}}</span>
  37. </button>
  38. </a>
  39. </li>
  40. <li id="repo-header-star">
  41. <a id="repo-header-star-btn" href="#">
  42. <button class="btn btn-gray text-bold btn-radius">
  43. <i class="octicon octicon-star"></i>Star
  44. <span class="num">{{.Repository.NumStars}}</span>
  45. </button>
  46. </a>
  47. </li>
  48. <li id="repo-header-fork">
  49. <a id="repo-header-fork-btn" href="#">
  50. <button class="btn btn-gray text-bold btn-radius">
  51. <i class="octicon octicon-repo-forked"></i>Fork
  52. <span class="num">{{.Repository.NumForks}}</span>
  53. </button>
  54. </a>
  55. </li>
  56. </ul>
  57. </div>
  58. </div>