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.

gitea.tmpl 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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"}}{{if .ContextUser.CanImportLocal}} {{.locale.Tr "repo.migrate.clone_local_path"}}{{end}}
  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" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}} data-need-clear="true" {{end}}>
  23. <a target="_blank" href="https://docs.gitea.com/development/api-usage">{{svg "octicon-question"}}</a>
  24. </div>
  25. {{template "repo/migrate/options" .}}
  26. <div class="inline field">
  27. <label>{{.locale.Tr "repo.migrate_items"}}</label>
  28. <div class="ui checkbox">
  29. <input name="wiki" type="checkbox" {{if .wiki}} checked{{end}}>
  30. <label>{{.locale.Tr "repo.migrate_items_wiki" | Safe}}</label>
  31. </div>
  32. </div>
  33. <div id="migrate_items">
  34. <span class="help">{{.locale.Tr "repo.migrate.migrate_items_options"}}</span>
  35. <div class="inline field">
  36. <label></label>
  37. <div class="ui checkbox">
  38. <input name="labels" type="checkbox" {{if .labels}} checked{{end}}>
  39. <label>{{.locale.Tr "repo.migrate_items_labels" | Safe}}</label>
  40. </div>
  41. <div class="ui checkbox">
  42. <input name="issues" type="checkbox" {{if .issues}} checked{{end}}>
  43. <label>{{.locale.Tr "repo.migrate_items_issues" | Safe}}</label>
  44. </div>
  45. </div>
  46. <div class="inline field">
  47. <label></label>
  48. <div class="ui checkbox">
  49. <input name="pull_requests" type="checkbox" {{if .pull_requests}} checked{{end}}>
  50. <label>{{.locale.Tr "repo.migrate_items_pullrequests" | Safe}}</label>
  51. </div>
  52. <div class="ui checkbox">
  53. <input name="releases" type="checkbox" {{if .releases}} checked{{end}}>
  54. <label>{{.locale.Tr "repo.migrate_items_releases" | Safe}}</label>
  55. </div>
  56. </div>
  57. <div class="inline field">
  58. <label></label>
  59. <div class="ui checkbox">
  60. <input name="milestones" type="checkbox" {{if .milestones}} checked{{end}}>
  61. <label>{{.locale.Tr "repo.migrate_items_milestones" | Safe}}</label>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="divider"></div>
  66. <div class="inline required field {{if .Err_Owner}}error{{end}}">
  67. <label>{{.locale.Tr "repo.owner"}}</label>
  68. <div class="ui selection owner dropdown">
  69. <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
  70. <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
  71. {{ctx.AvatarUtils.Avatar .ContextUser}}
  72. <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
  73. </span>
  74. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  75. <div class="menu" title="{{.SignedUser.Name}}">
  76. <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
  77. {{ctx.AvatarUtils.Avatar .SignedUser}}
  78. <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
  79. </div>
  80. {{range .Orgs}}
  81. <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
  82. {{ctx.AvatarUtils.Avatar .}}
  83. <span class="truncated-item-name">{{.ShortName 40}}</span>
  84. </div>
  85. {{end}}
  86. </div>
  87. </div>
  88. </div>
  89. <div class="inline required field {{if .Err_RepoName}}error{{end}}">
  90. <label for="repo_name">{{.locale.Tr "repo.repo_name"}}</label>
  91. <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
  92. </div>
  93. <div class="inline field">
  94. <label>{{.locale.Tr "repo.visibility"}}</label>
  95. <div class="ui checkbox">
  96. {{if .IsForcedPrivate}}
  97. <input name="private" type="checkbox" checked readonly>
  98. <label>{{.locale.Tr "repo.visibility_helper_forced" | Safe}}</label>
  99. {{else}}
  100. <input name="private" type="checkbox" {{if .private}} checked{{end}}>
  101. <label>{{.locale.Tr "repo.visibility_helper" | Safe}}</label>
  102. {{end}}
  103. </div>
  104. </div>
  105. <div class="inline field {{if .Err_Description}}error{{end}}">
  106. <label for="description">{{.locale.Tr "repo.repo_desc"}}</label>
  107. <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
  108. </div>
  109. <div class="inline field">
  110. <label></label>
  111. <button class="ui green button">
  112. {{.locale.Tr "repo.migrate_repo"}}
  113. </button>
  114. </div>
  115. </div>
  116. </form>
  117. </div>
  118. </div>
  119. </div>
  120. {{template "base/footer" .}}