|
|
@ -14,16 +14,23 @@ |
|
|
|
<input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required> |
|
|
|
<input id="clone_addr" name="clone_addr" value="{{.clone_addr}}" autofocus required> |
|
|
|
<span class="help"> |
|
|
|
<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"}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate.clone_local_path"}}{{end}} |
|
|
|
<br/>{{.i18n.Tr "repo.migrate.migrate_items_options"}} |
|
|
|
|
|
|
|
{{if .LFSActive}}<br/>{{.i18n.Tr "repo.migrate.lfs_mirror_unsupported"}}{{end}} |
|
|
|
{{if .LFSActive}}<br/>{{.i18n.Tr "repo.migrate.lfs_mirror_unsupported"}}{{end}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui accordion optional field"> |
|
|
|
|
|
|
|
<div class="title {{if .Err_Auth}}text red active{{end}}"> |
|
|
|
<div class="inline field"> |
|
|
|
<i class="icon dropdown"></i> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_service"}}</label> |
|
|
|
{{.i18n.Tr "repo.need_auth"}} |
|
|
|
<div class="ui selection dropdown"> |
|
|
|
|
|
|
|
<input id="service_type" type="hidden" name="service" value="{{.service}}"> |
|
|
|
|
|
|
|
<div class="default text"></div> |
|
|
|
|
|
|
|
<i class="dropdown icon"></i> |
|
|
|
|
|
|
|
<div class="menu"> |
|
|
|
|
|
|
|
{{range .Services}} |
|
|
|
|
|
|
|
<div id="service-{{.}}" class="item" data-token="{{.TokenAuth}}" data-value="{{.}}">{{.Title}}</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="content {{if .Err_Auth}}active{{end}}"> |
|
|
|
|
|
|
|
<div class="inline field {{if .Err_Auth}}error{{end}}"> |
|
|
|
<div class="inline field {{if .Err_Auth}}error{{end}}"> |
|
|
|
<label for="auth_username">{{.i18n.Tr "username"}}</label> |
|
|
|
<label for="auth_username">{{.i18n.Tr "username"}}</label> |
|
|
|
<input id="auth_username" name="auth_username" value="{{.auth_username}}" {{if not .auth_username}}data-need-clear="true"{{end}}> |
|
|
|
<input id="auth_username" name="auth_username" value="{{.auth_username}}" {{if not .auth_username}}data-need-clear="true"{{end}}> |
|
|
@ -33,64 +40,26 @@ |
|
|
|
<label for="auth_password">{{.i18n.Tr "password"}}</label> |
|
|
|
<label for="auth_password">{{.i18n.Tr "password"}}</label> |
|
|
|
<input id="auth_password" name="auth_password" type="password" value="{{.auth_password}}"> |
|
|
|
<input id="auth_password" name="auth_password" type="password" value="{{.auth_password}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="inline field {{if .Err_Auth}}error{{end}}"> |
|
|
|
</div> |
|
|
|
<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}}> |
|
|
|
<div class="ui divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="inline required field {{if .Err_Owner}}error{{end}}"> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.owner"}}</label> |
|
|
|
|
|
|
|
<div class="ui selection owner dropdown"> |
|
|
|
|
|
|
|
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> |
|
|
|
|
|
|
|
<span class="text" title="{{.ContextUser.Name}}"> |
|
|
|
|
|
|
|
<img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}"> |
|
|
|
|
|
|
|
{{.ContextUser.ShortName 20}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<i class="dropdown icon"></i> |
|
|
|
|
|
|
|
<div class="menu" title="{{.SignedUser.Name}}"> |
|
|
|
|
|
|
|
<div class="item" data-value="{{.SignedUser.ID}}"> |
|
|
|
|
|
|
|
<img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}"> |
|
|
|
|
|
|
|
{{.SignedUser.ShortName 20}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{range .Orgs}} |
|
|
|
|
|
|
|
<div class="item" data-value="{{.ID}}" title="{{.Name}}"> |
|
|
|
|
|
|
|
<img class="ui mini image" src="{{.RelAvatarLink}}"> |
|
|
|
|
|
|
|
{{.ShortName 20}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> |
|
|
|
|
|
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label> |
|
|
|
|
|
|
|
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="inline field"> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.visibility"}}</label> |
|
|
|
|
|
|
|
<div class="ui checkbox"> |
|
|
|
|
|
|
|
{{if .IsForcedPrivate}} |
|
|
|
|
|
|
|
<input name="private" type="checkbox" checked readonly> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.visibility_helper_forced" | Safe}}</label> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
<input name="private" type="checkbox" {{if .private}}checked{{end}}> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.visibility_helper" | Safe}}</label> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_type"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_options"}}</label> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="ui checkbox"> |
|
|
|
{{if .DisableMirrors}} |
|
|
|
{{if .DisableMirrors}} |
|
|
|
<input id="mirror" name="mirror" type="checkbox" readonly> |
|
|
|
<input id="mirror" name="mirror" type="checkbox" readonly> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_type_helper_disabled"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_options_mirror_disabled"}}</label> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<input id="mirror" name="mirror" type="checkbox" {{if .mirror}}checked{{end}}> |
|
|
|
<input id="mirror" name="mirror" type="checkbox" {{if .mirror}}checked{{end}}> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_type_helper" | Safe}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_options_mirror_helper" | Safe}}</label> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="migrate_items" class="ui field"> |
|
|
|
|
|
|
|
|
|
|
|
<span class="help">{{.i18n.Tr "repo.migrate.migrate_items_options"}}</span> |
|
|
|
|
|
|
|
<div id="migrate_items"> |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_items"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.migrate_items"}}</label> |
|
|
|
<div class="ui checkbox"> |
|
|
|
<div class="ui checkbox"> |
|
|
@ -125,6 +94,49 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="ui divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="inline required field {{if .Err_Owner}}error{{end}}"> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.owner"}}</label> |
|
|
|
|
|
|
|
<div class="ui selection owner dropdown"> |
|
|
|
|
|
|
|
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> |
|
|
|
|
|
|
|
<span class="text" title="{{.ContextUser.Name}}"> |
|
|
|
|
|
|
|
<img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}"> |
|
|
|
|
|
|
|
{{.ContextUser.ShortName 20}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<i class="dropdown icon"></i> |
|
|
|
|
|
|
|
<div class="menu" title="{{.SignedUser.Name}}"> |
|
|
|
|
|
|
|
<div class="item" data-value="{{.SignedUser.ID}}"> |
|
|
|
|
|
|
|
<img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}"> |
|
|
|
|
|
|
|
{{.SignedUser.ShortName 20}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{range .Orgs}} |
|
|
|
|
|
|
|
<div class="item" data-value="{{.ID}}" title="{{.Name}}"> |
|
|
|
|
|
|
|
<img class="ui mini image" src="{{.RelAvatarLink}}"> |
|
|
|
|
|
|
|
{{.ShortName 20}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> |
|
|
|
|
|
|
|
<label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label> |
|
|
|
|
|
|
|
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="inline field"> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.visibility"}}</label> |
|
|
|
|
|
|
|
<div class="ui checkbox"> |
|
|
|
|
|
|
|
{{if .IsForcedPrivate}} |
|
|
|
|
|
|
|
<input name="private" type="checkbox" checked readonly> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.visibility_helper_forced" | Safe}}</label> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
<input name="private" type="checkbox" {{if .private}}checked{{end}}> |
|
|
|
|
|
|
|
<label>{{.i18n.Tr "repo.visibility_helper" | Safe}}</label> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="inline field {{if .Err_Description}}error{{end}}"> |
|
|
|
<div class="inline field {{if .Err_Description}}error{{end}}"> |
|
|
|
<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label> |
|
|
|
<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label> |
|
|
|
<textarea id="description" name="description">{{.description}}</textarea> |
|
|
|
<textarea id="description" name="description">{{.description}}</textarea> |
|
|
|