]> source.dussan.org Git - gitea.git/commitdiff
Migrating wiki don't require token, so we should move it out of the require form...
authorLunny Xiao <xiaolunwen@gmail.com>
Mon, 27 Dec 2021 01:33:32 +0000 (09:33 +0800)
committerGitHub <noreply@github.com>
Mon, 27 Dec 2021 01:33:32 +0000 (09:33 +0800)
* Migrating wiki don't require token, so we should move it out of the require form

* Fix lint

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
templates/repo/migrate/gitea.tmpl
templates/repo/migrate/github.tmpl
templates/repo/migrate/gitlab.tmpl
templates/repo/migrate/gogs.tmpl
web_src/less/_form.less

index 52528fc57c27f5988a55bc85c0c8ac88dfcfe1ea..6b0445ff37c65fa497e2966f2e0c39c35a07c8b8 100644 (file)
 
                                        {{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">
                                                                <label>{{.i18n.Tr "repo.migrate_items_releases" | 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>
                                        </div>
 
                                        <div class="ui divider"></div>
index 156f8896fce04f5812b8087500ed1e9664b07753..a96922b06573aee0388f3085076f2887eaa29d23 100644 (file)
 
                                        {{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">
                                                                <label>{{.i18n.Tr "repo.migrate_items_releases" | 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>
                                        </div>
 
                                        <div class="ui divider"></div>
index e1424c250fb059db30364e7d0a501e83b633f44f..b730164a8ff084a568762f87b62eff043150abdd 100644 (file)
 
                                        {{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">
                                                                <label>{{.i18n.Tr "repo.migrate_items_releases" | 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>
                                        </div>
 
                                        <div class="ui divider"></div>
index b1900e83d1019f20508ea6efbfb366bde0902071..c35ef017b33595e0f4d4a7740a94625ab1994947 100644 (file)
 
                                        {{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">
                                                                <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>
index 4de0ed8d45332e3989aa0104a5819e86e5690860..7fdce11690874ab08f0e5f4a108652a101add221 100644 (file)
@@ -135,7 +135,6 @@ textarea:focus,
 .form {
   .help {
     color: #999999;
-    padding-top: .6em;
     padding-bottom: .6em;
     display: inline-block;
   }