bare.tmpl 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="repo-wrapper" class="repo-bare">
  4. <div id="repo-header" class="clear">
  5. <div class="container clear">
  6. <h1 id="repo-header-name" class="left public">
  7. <i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else}}repo{{end}}"></i>
  8. <a class="author" href="/{{.Repository.Owner.Name}}">{{.Repository.Owner.Name}}</a>
  9. <span class="divider">/</span>
  10. <a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a>
  11. </h1>
  12. </div>
  13. </div>
  14. <div id="repo-content" class="clear container">
  15. <div id="repo-bare">
  16. <div id="repo-bare-start" class="panel panel-radius">
  17. <p class="panel-header"><strong>Quick Start</strong></p>
  18. <div class="panel-content">
  19. <div id="repo-clone" class="clear text-center">
  20. <h2>Clone this repository</h2>
  21. <button id="repo-clone-ssh" class="btn btn-blue current left btn-left-radius">SSH</button>
  22. <button id="repo-clone-https" class="btn btn-gray left">HTTPS</button>
  23. <input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" />
  24. <button id="repo-clone-copy" class="btn btn-black left btn-right-radius">Copy</button>
  25. <p class="text-center" id="repo-clone-help">Need help cloning? Visit <a href="#">Help</a>!</p>
  26. <hr/>
  27. </div>
  28. <div id="repo-bare-cmd" class="text-center">
  29. <h2>Create a new repository on the command line</h2>
  30. <pre class="text-left radius"><code>touch README.md
  31. git init
  32. git add README.md
  33. git commit -m "first commit"
  34. git remote add origin <span class="clone-url">{{.CloneLink.SSH}}</span>
  35. git push -u origin master</code></pre>
  36. <br/>
  37. <hr/>
  38. </div>
  39. <div id="repo-bare-remote" class="text-center">
  40. <h2>Push an existing repository from the command line</h2>
  41. <pre class="text-left radius"><code>git remote add origin <span class="clone-url">{{.CloneLink.SSH}}</span>
  42. git push -u origin master</code></pre>
  43. <br/>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. {{template "ng/base/footer" .}}