Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

empty.tmpl 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content repository quickstart">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="ui grid">
  6. <div class="sixteen wide column content">
  7. {{template "base/alert" .}}
  8. {{if .Repository.IsArchived}}
  9. <div class="ui warning message">
  10. {{.locale.Tr "repo.archive.title"}}
  11. </div>
  12. {{end}}
  13. {{if .Repository.IsBroken}}
  14. <div class="ui segment center">
  15. {{.locale.Tr "repo.broken_message"}}
  16. </div>
  17. {{else if .CanWriteCode}}
  18. <h4 class="ui top attached header">
  19. {{.locale.Tr "repo.quick_guide"}}
  20. </h4>
  21. <div class="ui attached guide table segment empty-repo-guide">
  22. <div class="item">
  23. <h3>{{.locale.Tr "repo.clone_this_repo"}} <small>{{.locale.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</small></h3>
  24. <div class="ui action small input">
  25. {{template "repo/clone_buttons" .}}
  26. </div>
  27. </div>
  28. {{if not .Repository.IsArchived}}
  29. <div class="ui divider"></div>
  30. <div class="item">
  31. <h3>{{.locale.Tr "repo.create_new_repo_command"}}</h3>
  32. <div class="markup">
  33. <pre><code>touch README.md
  34. git init
  35. {{if ne .Repository.DefaultBranch "master"}}git checkout -b {{.Repository.DefaultBranch}}{{end}}
  36. git add README.md
  37. git commit -m "first commit"
  38. git remote add origin <span class="js-clone-url">{{$.CloneButtonOriginLink.HTTPS}}</span>
  39. git push -u origin {{.Repository.DefaultBranch}}</code></pre>
  40. </div>
  41. </div>
  42. <div class="ui divider"></div>
  43. <div class="item">
  44. <h3>{{.locale.Tr "repo.push_exist_repo"}}</h3>
  45. <div class="markup">
  46. <pre><code>git remote add origin <span class="js-clone-url">{{$.CloneButtonOriginLink.HTTPS}}</span>
  47. git push -u origin {{.Repository.DefaultBranch}}</code></pre>
  48. </div>
  49. </div>
  50. {{template "repo/clone_script" .}}
  51. {{end}}
  52. {{else}}
  53. <div class="ui segment center">
  54. {{.locale.Tr "repo.empty_message"}}
  55. </div>
  56. {{end}}
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. {{template "base/footer" .}}