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.

github.tmpl 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
  3. <div class="ui middle very relaxed page grid">
  4. <div class="column">
  5. <form class="ui form" action="{{.Link}}" method="post">
  6. {{.CsrfTokenHtml}}
  7. <h3 class="ui top attached header">
  8. {{.locale.Tr "repo.migrate.migrate" .service.Title}}
  9. <input id="service_type" type="hidden" name="service" value="{{.service}}">
  10. </h3>
  11. <div class="ui attached segment">
  12. {{template "base/alert" .}}
  13. <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
  14. <label for="clone_addr">{{.locale.Tr "repo.migrate.clone_address"}}</label>
  15. <input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required>
  16. <span class="help">
  17. {{.locale.Tr "repo.migrate.clone_address_desc"}}
  18. </span>
  19. </div>
  20. <div class="inline field {{if .Err_Auth}}error{{end}}">
  21. <label for="auth_token">{{.locale.Tr "access_token"}}</label>
  22. <input id="auth_token" name="auth_token" value="{{.auth_token}}" {{if not .auth_token}}data-need-clear="true"{{end}}>
  23. <a target="_blank" href="https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token">{{svg "octicon-question"}}</a>
  24. <span class="help">
  25. {{.locale.Tr "repo.migrate.github_token_desc"}}
  26. </span>
  27. </div>
  28. {{template "repo/migrate/options" .}}
  29. <div class="inline field">
  30. <label>{{.locale.Tr "repo.migrate_items"}}</label>
  31. <div class="ui checkbox">
  32. <input name="wiki" type="checkbox" {{if .wiki}}checked{{end}}>
  33. <label>{{.locale.Tr "repo.migrate_items_wiki" | Safe}}</label>
  34. </div>
  35. </div>
  36. <div id="migrate_items">
  37. <span class="help">{{.locale.Tr "repo.migrate.migrate_items_options"}}</span>
  38. <div class="inline field">
  39. <label></label>
  40. <div class="ui checkbox">
  41. <input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
  42. <label>{{.locale.Tr "repo.migrate_items_labels" | Safe}}</label>
  43. </div>
  44. <div class="ui checkbox">
  45. <input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
  46. <label>{{.locale.Tr "repo.migrate_items_issues" | Safe}}</label>
  47. </div>
  48. </div>
  49. <div class="inline field">
  50. <label></label>
  51. <div class="ui checkbox">
  52. <input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
  53. <label>{{.locale.Tr "repo.migrate_items_pullrequests" | Safe}}</label>
  54. </div>
  55. <div class="ui checkbox">
  56. <input name="releases" type="checkbox" {{if .releases}}checked{{end}}>
  57. <label>{{.locale.Tr "repo.migrate_items_releases" | Safe}}</label>
  58. </div>
  59. </div>
  60. <div class="inline field">
  61. <label></label>
  62. <div class="ui checkbox">
  63. <input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}>
  64. <label>{{.locale.Tr "repo.migrate_items_milestones" | Safe}}</label>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="ui divider"></div>
  69. <div class="inline required field {{if .Err_Owner}}error{{end}}">
  70. <label>{{.locale.Tr "repo.owner"}}</label>
  71. <div class="ui selection owner dropdown">
  72. <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
  73. <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
  74. {{avatar .ContextUser 28 "mini"}}
  75. <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
  76. </span>
  77. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  78. <div class="menu" title="{{.SignedUser.Name}}">
  79. <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
  80. {{avatar .SignedUser 28 "mini"}}
  81. <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
  82. </div>
  83. {{range .Orgs}}
  84. <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
  85. {{avatar . 28 "mini"}}
  86. <span class="truncated-item-name">{{.ShortName 40}}</span>
  87. </div>
  88. {{end}}
  89. </div>
  90. </div>
  91. </div>
  92. <div class="inline required field {{if .Err_RepoName}}error{{end}}">
  93. <label for="repo_name">{{.locale.Tr "repo.repo_name"}}</label>
  94. <input id="repo_name" name="repo_name" value="{{.repo_name}}" required>
  95. </div>
  96. <div class="inline field">
  97. <label>{{.locale.Tr "repo.visibility"}}</label>
  98. <div class="ui checkbox">
  99. {{if .IsForcedPrivate}}
  100. <input name="private" type="checkbox" checked readonly>
  101. <label>{{.locale.Tr "repo.visibility_helper_forced" | Safe}}</label>
  102. {{else}}
  103. <input name="private" type="checkbox" {{if .private}}checked{{end}}>
  104. <label>{{.locale.Tr "repo.visibility_helper" | Safe}}</label>
  105. {{end}}
  106. </div>
  107. </div>
  108. <div class="inline field {{if .Err_Description}}error{{end}}">
  109. <label for="description">{{.locale.Tr "repo.repo_desc"}}</label>
  110. <textarea id="description" name="description">{{.description}}</textarea>
  111. </div>
  112. <div class="inline field">
  113. <label></label>
  114. <button class="ui green button">
  115. {{.locale.Tr "repo.migrate_repo"}}
  116. </button>
  117. </div>
  118. </div>
  119. </form>
  120. </div>
  121. </div>
  122. </div>
  123. {{template "base/footer" .}}