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.

56 lines
3.6 KiB

  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">{{.i18n.Tr "repo.clone_helper" | Str2html}}</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="{{.RepoLink}}/action/{{if .IsWatchingRepo}}un{{end}}watch">
  34. <button class="btn btn-gray text-bold btn-radius">
  35. <i class="octicon octicon-eye-watch"></i>{{if .IsWatchingRepo}}{{.i18n.Tr "repo.unwatch"}}{{else}}{{.i18n.Tr "repo.watch"}}{{end}}<span class="num">{{.Repository.NumWatches}}</span>
  36. </button>
  37. </a>
  38. </li>
  39. <li id="repo-header-star">
  40. <a id="repo-header-star-btn" href="{{.RepoLink}}/action/{{if .IsStaringRepo}}un{{end}}star">
  41. <button class="btn btn-gray text-bold btn-radius">
  42. <i class="octicon octicon-star"></i>{{if .IsStaringRepo}}{{.i18n.Tr "repo.unstar"}}{{else}}{{.i18n.Tr "repo.star"}}{{end}}
  43. <span class="num">{{.Repository.NumStars}}</span>
  44. </button>
  45. </a>
  46. </li>
  47. <li id="repo-header-fork">
  48. <a id="repo-header-fork-btn" href="{{.RepoLink}}/action/fork">
  49. <button class="btn btn-gray text-bold btn-radius">
  50. <i class="octicon octicon-repo-forked"></i>{{.i18n.Tr "repo.fork"}}
  51. <span class="num">{{.Repository.NumForks}}</span>
  52. </button>
  53. </a>
  54. </li>
  55. </ul>
  56. </div>
  57. </div>