summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-10-15 13:47:15 +0800
committerGitHub <noreply@github.com>2021-10-15 13:47:15 +0800
commitbdfd751af88c5bdb70dbdfb4f7f607f6fbf77896 (patch)
treeca51c2d1df9ead276efd130eb55204cdbf3df130 /templates
parent56362043d35d2542c6fe4ac7c0ac5aabb833a9ed (diff)
downloadgitea-bdfd751af88c5bdb70dbdfb4f7f607f6fbf77896.tar.gz
gitea-bdfd751af88c5bdb70dbdfb4f7f607f6fbf77896.zip
Multiple tokens support for migrating from github (#17134)
* multiple tokens support for migrating from github * improve code and token description * Fix bug * Add comment for get client
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/migrate/github.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/repo/migrate/github.tmpl b/templates/repo/migrate/github.tmpl
index 156f8896fc..9bd7228a43 100644
--- a/templates/repo/migrate/github.tmpl
+++ b/templates/repo/migrate/github.tmpl
@@ -14,7 +14,7 @@
<label for="clone_addr">{{.i18n.Tr "repo.migrate.clone_address"}}</label>
<input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required>
<span class="help">
- {{.i18n.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}}
+ {{.i18n.Tr "repo.migrate.clone_address_desc"}}
</span>
</div>
@@ -22,6 +22,9 @@
<label for="auth_token">{{.i18n.Tr "access_token"}}</label>
<input id="auth_token" name="auth_token" value="{{.auth_token}}" {{if not .auth_token}}data-need-clear="true"{{end}}>
<a target="_blank" href="https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token">{{svg "octicon-question"}}</a>
+ <span class="help">
+ {{.i18n.Tr "repo.migrate.github_token_desc"}}
+ </span>
</div>
{{template "repo/migrate/options" .}}