diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-16 14:17:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 14:17:21 +0800 |
commit | d789670894d09d7db96f4cd2dc3d57d2424eb753 (patch) | |
tree | 571ef6db28de643e1cc881ee1312f41da02e969f /templates/repo/migrate/gogs.tmpl | |
parent | 6f7082ff563d06e4b2ff3e11c32f160028c98975 (diff) | |
download | gitea-d789670894d09d7db96f4cd2dc3d57d2424eb753.tar.gz gitea-d789670894d09d7db96f4cd2dc3d57d2424eb753.zip |
Migrating wiki don't require token, so we should move it out of the require form (#17645)
* Migrating wiki don't require token, so we should move it out of the require form
* Fix lint
Diffstat (limited to 'templates/repo/migrate/gogs.tmpl')
-rw-r--r-- | templates/repo/migrate/gogs.tmpl | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/templates/repo/migrate/gogs.tmpl b/templates/repo/migrate/gogs.tmpl index b1900e83d1..c35ef017b3 100644 --- a/templates/repo/migrate/gogs.tmpl +++ b/templates/repo/migrate/gogs.tmpl @@ -26,19 +26,16 @@ {{template "repo/migrate/options" .}} - <span class="help">{{.i18n.Tr "repo.migrate.migrate_items_options"}}</span> - <div id="migrate_items"> - <div class="inline field"> - <label>{{.i18n.Tr "repo.migrate_items"}}</label> - <div class="ui checkbox"> - <input name="wiki" type="checkbox" {{if .wiki}} checked{{end}}> - <label>{{.i18n.Tr "repo.migrate_items_wiki" | Safe}}</label> - </div> - <div class="ui checkbox"> - <input name="milestones" type="checkbox" {{if .milestones}} checked{{end}}> - <label>{{.i18n.Tr "repo.migrate_items_milestones" | Safe}}</label> - </div> + <div class="inline field"> + <label>{{.i18n.Tr "repo.migrate_items"}}</label> + <div class="ui checkbox"> + <input name="wiki" type="checkbox" {{if .wiki}} checked{{end}}> + <label>{{.i18n.Tr "repo.migrate_items_wiki" | Safe}}</label> </div> + </div> + + <div id="migrate_items"> + <span class="help">{{.i18n.Tr "repo.migrate.migrate_items_options"}}</span> <div class="inline field"> <label></label> <div class="ui checkbox"> @@ -50,6 +47,13 @@ <label>{{.i18n.Tr "repo.migrate_items_issues" | Safe}}</label> </div> </div> + <div class="inline field"> + <label></label> + <div class="ui checkbox"> + <input name="milestones" type="checkbox" {{if .milestones}} checked{{end}}> + <label>{{.i18n.Tr "repo.migrate_items_milestones" | Safe}}</label> + </div> + </div> <!-- Gogs do not support it <div class="inline field"> <label></label> |