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.

67 lines
5.3 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
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. <div id="body-nav" class="repo-nav">
  2. <div class="container">
  3. <div class="row">
  4. <div class="col-md-7">
  5. <h3 class="name"><i class="fa fa-book fa-lg"></i><a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Repository.Name}}">{{.Repository.Name}}</a> {{if .Repository.IsPrivate}}<span class="label label-default">Private</span>{{else if .Repository.IsMirror}}<span class="label label-default">Mirror</span>{{end}}</h3>
  6. <p class="desc">{{.Repository.DescriptionHtml}}{{if .Repository.Website}} <a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}</p>
  7. </div>
  8. <div class="col-md-5 actions text-right clone-group-btn">
  9. {{if not .IsBareRepo}}
  10. <div class="btn-group" id="repo-clone">
  11. <a class="btn btn-default" href="{{.RepoLink}}/archive/{{.BranchName}}/{{.Repository.Name}}.zip"><i class="fa fa-download fa-lg fa-m"></i></a>
  12. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
  13. <span class="caret"></span>
  14. </button>
  15. <div class="dropdown-menu clone-group-btn dropdown-menu-right no-propagation">
  16. <div class="input-group">
  17. <span class="input-group-btn">
  18. <button class="btn btn-default" data-link="{{.CloneLink.SSH}}" type="button">SSH</button>
  19. <button class="btn btn-default" data-link="{{.CloneLink.HTTPS}}" type="button">HTTPS</button>
  20. </span>
  21. <input type="text" class="form-control clone-group-url" value="" readonly id="repo-clone-ipt"/>
  22. <span class="input-group-btn">
  23. <button class="btn btn-default" type="button" data-toggle="tooltip" title="copy to clipboard" data-placement="top" data-init="copy" data-copy-val="val" data-copy-from="#repo-clone-ipt"><i class="fa fa-copy"></i></button>
  24. </span>
  25. </div>
  26. <p class="help-block text-center">Need help cloning? Visit <a target="_blank" href="https://help.github.com/articles/fork-a-repo">Help</a>!</p>
  27. <hr/>
  28. <div class="clone-zip text-center">
  29. <a class="btn btn-success btn-lg" href="{{.RepoLink}}/archive/{{.BranchName}}/{{.Repository.Name}}.zip" rel="nofollow"><i class="fa fa-suitcase"></i>Download ZIP</a>
  30. <a class="btn btn-success btn-lg" href="{{.RepoLink}}/archive/{{.BranchName}}/{{.Repository.Name}}.tar.gz" rel="nofollow"><i class="fa fa-suitcase"></i>Download TAR.GZ</a>
  31. </div>
  32. </div>
  33. </div>
  34. {{if .IsSigned}}
  35. <div class="btn-group {{if .IsRepositoryWatching}}watching{{else}}no-watching{{end}}" id="repo-watching" data-watch="{{AppSubUrl}}/{{.Owner.Name}}/{{.Repository.Name}}/action/watch" data-unwatch="{{AppSubUrl}}/{{.Owner.Name}}/{{.Repository.Name}}/action/unwatch">
  36. {{if .IsRepositoryWatching}}
  37. <button type="button" class="btn btn-default"><i class="fa fa-eye fa-lg fa-m"></i></button>
  38. {{else}}
  39. <button type="button" class="btn btn-default"><i class="fa fa-eye-slash fa-lg fa-m"></i></button>
  40. {{end}}
  41. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
  42. <span class="caret"></span>
  43. </button>
  44. <div class="dropdown-menu dropdown-menu-right">
  45. <div class="dropdown-item text-left to-unwatch">
  46. <h4 role="presentation" class="dropdown-header {{if not .IsRepositoryWatching}}text-primary{{end}}">Not Watching</h4>
  47. <p class="description">You only receive notifications for conversations in which you participate or are @mentioned.</p>
  48. <p class="divider"></p>
  49. </div>
  50. <div class="dropdown-item text-left to-watch">
  51. <h4 role="presentation" class="dropdown-header {{if .IsRepositoryWatching}}text-primary{{end}}">Watching</h4>
  52. <p class="description">You receive notifications for all conversations in this repository.</p>
  53. </div>
  54. </div>
  55. </div>
  56. {{end}}
  57. <!-- <div class="btn-group">
  58. <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Star"><i class="fa fa-star"></i>&nbsp;{{.Repository.NumStars}}</button>
  59. </div> -->
  60. {{end}}
  61. <!-- <div class="btn-group">
  62. <a type="button" {{if not .IsRepositoryOwner}}href="{{AppSubUrl}}/{{.Username}}/{{.Reponame}}/fork"{{end}} class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Fork"><i class="fa fa-code-fork fa-lg"></i>&nbsp;{{.Repository.NumForks}}</a>
  63. </div> -->
  64. </div>
  65. </div>
  66. </div>
  67. </div>