Fix form width (#33151)

Fix #33150
pull/33146/head^2
wxiaoguang 3 weeks ago committed by GitHub
parent 124079871b
commit 9c00e065a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 84
      templates/org/create.tmpl
  2. 366
      templates/repo/create.tmpl
  3. 190
      templates/repo/migrate/codebase.tmpl
  4. 190
      templates/repo/migrate/codecommit.tmpl
  5. 148
      templates/repo/migrate/git.tmpl
  6. 212
      templates/repo/migrate/gitbucket.tmpl
  7. 204
      templates/repo/migrate/gitea.tmpl
  8. 208
      templates/repo/migrate/github.tmpl
  9. 202
      templates/repo/migrate/gitlab.tmpl
  10. 208
      templates/repo/migrate/gogs.tmpl
  11. 190
      templates/repo/migrate/onedev.tmpl
  12. 144
      templates/repo/pulls/fork.tmpl
  13. 58
      templates/user/auth/signup_openid_connect.tmpl
  14. 1
      web_src/css/form.css
  15. 3
      web_src/css/modules/container.css

@ -1,54 +1,52 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content organization new org"> <div role="main" aria-label="{{.Title}}" class="page-content organization new org">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> {{template "base/alert" .}}
{{template "base/alert" .}} <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "new_org"}}
{{ctx.Locale.Tr "new_org"}} </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_OrgName}}error{{end}}">
<div class="inline required field {{if .Err_OrgName}}error{{end}}"> <label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}</label>
<label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}</label> <input id="org_name" name="org_name" value="{{.org_name}}" autofocus required maxlength="40">
<input id="org_name" name="org_name" value="{{.org_name}}" autofocus required maxlength="40"> <span class="help">{{ctx.Locale.Tr "org.org_name_helper"}}</span>
<span class="help">{{ctx.Locale.Tr "org.org_name_helper"}}</span> </div>
</div>
<div class="inline field required {{if .Err_OrgVisibility}}error{{end}}"> <div class="inline field required {{if .Err_OrgVisibility}}error{{end}}">
<label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label> <label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label>
<div class="inline-right"> <div class="inline-right">
<div class="ui radio checkbox"> <div class="ui radio checkbox">
<input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}> <input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}>
<label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label> <label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label>
</div>
<div class="ui radio checkbox">
<input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}>
<label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label>
</div>
<div class="ui radio checkbox">
<input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}>
<label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label>
</div>
</div> </div>
</div> <div class="ui radio checkbox">
<input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}>
<div class="inline field" id="permission_box"> <label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label>
<label>{{ctx.Locale.Tr "org.settings.permission"}}</label> </div>
<div class="ui checkbox"> <div class="ui radio checkbox">
<input type="checkbox" name="repo_admin_change_team_access" checked> <input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}>
<label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label> <label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label>
</div> </div>
</div> </div>
</div>
<div class="inline field"> <div class="inline field" id="permission_box">
<label></label> <label>{{ctx.Locale.Tr "org.settings.permission"}}</label>
<button class="ui primary button"> <div class="ui checkbox">
{{ctx.Locale.Tr "org.create_org"}} <input type="checkbox" name="repo_admin_change_team_access" checked>
</button> <label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label>
</div> </div>
</form> </div>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "org.create_org"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,224 +1,222 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new-repo"> <div role="main" aria-label="{{.Title}}" class="page-content repository new-repo">
<div class="ui middle very relaxed page one column grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "new_repo"}}
{{ctx.Locale.Tr "new_repo"}} </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} {{template "repo/create_helper" .}}
{{template "repo/create_helper" .}}
{{if not .CanCreateRepo}} {{if not .CanCreateRepo}}
<div class="ui negative message"> <div class="ui negative message">
<p>{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}</p> <p>{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}</p>
</div> </div>
{{end}} {{end}}
<form class="ui form left-right-form new-repo-form" action="{{.Link}}" method="post"> <form class="ui form left-right-form new-repo-form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}} {{.CsrfTokenHtml}}
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu"> <div class="menu">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}">
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div> </div>
{{range .Orgs}} {{end}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div>
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.owner_helper"}}</span>
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.owner_helper"}}</span>
</div>
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required maxlength="100"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" autofocus required maxlength="100">
<span class="help" data-help-for-repo-name>{{ctx.Locale.Tr "repo.repo_name_helper"}}</span> <span class="help" data-help-for-repo-name>{{ctx.Locale.Tr "repo.repo_name_helper"}}</span>
<span class="help tw-hidden" data-help-for-repo-name=".profile">{{ctx.Locale.Tr "repo.repo_name_profile_public_hint"}}</span> <span class="help tw-hidden" data-help-for-repo-name=".profile">{{ctx.Locale.Tr "repo.repo_name_profile_public_hint"}}</span>
<span class="help tw-hidden" data-help-for-repo-name=".profile-private">{{ctx.Locale.Tr "repo.repo_name_profile_private_hint"}}</span> <span class="help tw-hidden" data-help-for-repo-name=".profile-private">{{ctx.Locale.Tr "repo.repo_name_profile_private_hint"}}</span>
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.visibility_description"}}</span>
</div>
<div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" rows="2" name="description" placeholder="{{ctx.Locale.Tr "repo.repo_desc_helper"}}" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.template"}}</label>
<div id="repo_template_search" class="ui search selection dropdown">
<input type="hidden" id="repo_template" name="repo_template" value="{{or .repo_template ""}}">
<div class="default text">{{.repo_template_name}}</div>
<div class="menu">
</div>
</div>
</div>
<div id="template_units" class="tw-hidden">
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label> <label>{{ctx.Locale.Tr "repo.template.items"}}</label>
<div class="ui checkbox"> <div class="ui checkbox">
{{if .IsForcedPrivate}} <input name="git_content" type="checkbox" {{if .git_content}}checked{{end}}>
<input name="private" type="checkbox" checked disabled> <label>{{ctx.Locale.Tr "repo.template.git_content"}}</label>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label> </div>
{{else}} <div class="ui checkbox" {{if not .SignedUser.CanEditGitHook}}data-tooltip-content="{{ctx.Locale.Tr "repo.template.git_hooks_tooltip"}}"{{end}}>
<input name="private" type="checkbox" {{if .private}}checked{{end}}> <input name="git_hooks" type="checkbox" {{if .git_hooks}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label> <label>{{ctx.Locale.Tr "repo.template.git_hooks"}}</label>
{{end}}
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.visibility_description"}}</span>
</div>
<div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" rows="2" name="description" placeholder="{{ctx.Locale.Tr "repo.repo_desc_helper"}}" maxlength="2048">{{.description}}</textarea>
</div> </div>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.template"}}</label> <label></label>
<div id="repo_template_search" class="ui search selection dropdown"> <div class="ui checkbox">
<input type="hidden" id="repo_template" name="repo_template" value="{{or .repo_template ""}}"> <input name="webhooks" type="checkbox" {{if .webhooks}}checked{{end}}>
<div class="default text">{{.repo_template_name}}</div> <label>{{ctx.Locale.Tr "repo.template.webhooks"}}</label>
<div class="menu">
</div>
</div> </div>
</div> <div class="ui checkbox">
<input name="topics" type="checkbox" {{if .topics}}checked{{end}}>
<div id="template_units" class="tw-hidden"> <label>{{ctx.Locale.Tr "repo.template.topics"}}</label>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.template.items"}}</label>
<div class="ui checkbox">
<input name="git_content" type="checkbox" {{if .git_content}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.template.git_content"}}</label>
</div>
<div class="ui checkbox" {{if not .SignedUser.CanEditGitHook}}data-tooltip-content="{{ctx.Locale.Tr "repo.template.git_hooks_tooltip"}}"{{end}}>
<input name="git_hooks" type="checkbox" {{if .git_hooks}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.template.git_hooks"}}</label>
</div>
</div> </div>
<div class="inline field"> </div>
<label></label> <div class="inline field">
<div class="ui checkbox"> <label></label>
<input name="webhooks" type="checkbox" {{if .webhooks}}checked{{end}}> <div class="ui checkbox">
<label>{{ctx.Locale.Tr "repo.template.webhooks"}}</label> <input name="avatar" type="checkbox" {{if .avatar}}checked{{end}}>
</div> <label>{{ctx.Locale.Tr "repo.template.avatar"}}</label>
<div class="ui checkbox">
<input name="topics" type="checkbox" {{if .topics}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.template.topics"}}</label>
</div>
</div> </div>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.template.issue_labels"}}</label>
<input name="avatar" type="checkbox" {{if .avatar}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.template.avatar"}}</label>
</div>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.template.issue_labels"}}</label>
</div>
</div> </div>
<div class="inline field"> </div>
<label></label> <div class="inline field">
<div class="ui checkbox"> <label></label>
<input name="protected_branch" type="checkbox" {{if .protected_branch}}checked{{end}}> <div class="ui checkbox">
<label>{{ctx.Locale.Tr "repo.settings.protected_branch"}}</label> <input name="protected_branch" type="checkbox" {{if .protected_branch}}checked{{end}}>
</div> <label>{{ctx.Locale.Tr "repo.settings.protected_branch"}}</label>
</div> </div>
</div> </div>
</div>
<div id="non_template"> <div id="non_template">
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.issue_labels"}}</label> <label>{{ctx.Locale.Tr "repo.issue_labels"}}</label>
<div class="ui search selection dropdown"> <div class="ui search selection dropdown">
<input type="hidden" name="issue_labels" value="{{.issueLabels}}"> <input type="hidden" name="issue_labels" value="{{.issueLabels}}">
<div class="default text">{{ctx.Locale.Tr "repo.issue_labels_helper"}}</div> <div class="default text">{{ctx.Locale.Tr "repo.issue_labels_helper"}}</div>
<div class="menu"> <div class="menu">
<div class="item" data-value="">{{ctx.Locale.Tr "repo.issue_labels_helper"}}</div> <div class="item" data-value="">{{ctx.Locale.Tr "repo.issue_labels_helper"}}</div>
{{range .LabelTemplateFiles}} {{range .LabelTemplateFiles}}
<div class="item" data-value="{{.DisplayName}}">{{.DisplayName}}<br><i>({{.Description}})</i></div> <div class="item" data-value="{{.DisplayName}}">{{.DisplayName}}<br><i>({{.Description}})</i></div>
{{end}} {{end}}
</div>
</div> </div>
</div> </div>
</div>
<div class="divider"></div> <div class="divider"></div>
<div class="inline field"> <div class="inline field">
<label>.gitignore</label> <label>.gitignore</label>
<div class="ui multiple search selection dropdown"> <div class="ui multiple search selection dropdown">
<input type="hidden" name="gitignores" value="{{.gitignores}}"> <input type="hidden" name="gitignores" value="{{.gitignores}}">
<div class="default text">{{ctx.Locale.Tr "repo.repo_gitignore_helper"}}</div> <div class="default text">{{ctx.Locale.Tr "repo.repo_gitignore_helper"}}</div>
<div class="menu"> <div class="menu">
{{range .Gitignores}} {{range .Gitignores}}
<div class="item" data-value="{{.}}">{{.}}</div> <div class="item" data-value="{{.}}">{{.}}</div>
{{end}} {{end}}
</div>
</div>
<span class="help">{{ctx.Locale.Tr "repo.repo_gitignore_helper_desc"}}</span>
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.license"}}</label>
<div class="ui search selection dropdown">
<input type="hidden" name="license" value="{{.license}}">
<div class="default text">{{ctx.Locale.Tr "repo.license_helper"}}</div>
<div class="menu">
<div class="item" data-value="">{{ctx.Locale.Tr "repo.license_helper"}}</div>
{{range .Licenses}}
<div class="item" data-value="{{.}}">{{.}}</div>
{{end}}
</div>
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.license_helper_desc" "https://choosealicense.com/"}}</span>
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.repo_gitignore_helper_desc"}}</span>
<div class="inline field"> </div>
<label>{{ctx.Locale.Tr "repo.readme"}}</label> <div class="inline field">
<div class="ui selection dropdown"> <label>{{ctx.Locale.Tr "repo.license"}}</label>
<input type="hidden" name="readme" value="{{.readme}}"> <div class="ui search selection dropdown">
<div class="default text">{{ctx.Locale.Tr "repo.readme_helper"}}</div> <input type="hidden" name="license" value="{{.license}}">
<div class="menu"> <div class="default text">{{ctx.Locale.Tr "repo.license_helper"}}</div>
{{range .Readmes}} <div class="menu">
<div class="item" data-value="{{.}}">{{.}}</div> <div class="item" data-value="">{{ctx.Locale.Tr "repo.license_helper"}}</div>
{{end}} {{range .Licenses}}
</div> <div class="item" data-value="{{.}}">{{.}}</div>
{{end}}
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.readme_helper_desc"}}</span>
</div> </div>
<div class="inline field"> <span class="help">{{ctx.Locale.Tr "repo.license_helper_desc" "https://choosealicense.com/"}}</span>
<label></label> </div>
<div class="ui checkbox" id="auto-init">
<input name="auto_init" type="checkbox" {{if .auto_init}}checked{{end}}> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.auto_init"}}</label> <label>{{ctx.Locale.Tr "repo.readme"}}</label>
<div class="ui selection dropdown">
<input type="hidden" name="readme" value="{{.readme}}">
<div class="default text">{{ctx.Locale.Tr "repo.readme_helper"}}</div>
<div class="menu">
{{range .Readmes}}
<div class="item" data-value="{{.}}">{{.}}</div>
{{end}}
</div> </div>
</div> </div>
<div class="inline field"> <span class="help">{{ctx.Locale.Tr "repo.readme_helper_desc"}}</span>
<label for="default_branch">{{ctx.Locale.Tr "repo.default_branch"}}</label> </div>
<input id="default_branch" name="default_branch" value="{{.default_branch}}" placeholder="{{.default_branch}}"> <div class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.default_branch_helper"}}</span> <label></label>
</div> <div class="ui checkbox" id="auto-init">
<div class="inline field"> <input name="auto_init" type="checkbox" {{if .auto_init}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.object_format"}}</label> <label>{{ctx.Locale.Tr "repo.auto_init"}}</label>
<div class="ui selection owner dropdown">
<input type="hidden" id="object_format_name" name="object_format_name" value="{{or .object_format_name .DefaultObjectFormat.Name}}" required>
<div class="default text">{{.DefaultObjectFormat.Name}}</div>
<div class="menu">
{{range .SupportedObjectFormats}}
<div class="item" data-value="{{.Name}}">{{.Name}}</div>
{{end}}
</div>
</div>
<span class="help">{{ctx.Locale.Tr "repo.object_format_helper"}}</span>
</div> </div>
<div class="inline field"> </div>
<label>{{ctx.Locale.Tr "repo.template"}}</label> <div class="inline field">
<div class="ui checkbox"> <label for="default_branch">{{ctx.Locale.Tr "repo.default_branch"}}</label>
<input name="template" type="checkbox"> <input id="default_branch" name="default_branch" value="{{.default_branch}}" placeholder="{{.default_branch}}">
<label>{{ctx.Locale.Tr "repo.template_helper"}}</label> <span class="help">{{ctx.Locale.Tr "repo.default_branch_helper"}}</span>
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.object_format"}}</label>
<div class="ui selection owner dropdown">
<input type="hidden" id="object_format_name" name="object_format_name" value="{{or .object_format_name .DefaultObjectFormat.Name}}" required>
<div class="default text">{{.DefaultObjectFormat.Name}}</div>
<div class="menu">
{{range .SupportedObjectFormats}}
<div class="item" data-value="{{.Name}}">{{.Name}}</div>
{{end}}
</div> </div>
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.object_format_helper"}}</span>
</div> </div>
<br>
<div class="inline field"> <div class="inline field">
<label></label> <label>{{ctx.Locale.Tr "repo.template"}}</label>
<button class="ui primary button{{if not .CanCreateRepo}} disabled{{end}}"> <div class="ui checkbox">
{{ctx.Locale.Tr "repo.create_repo"}} <input name="template" type="checkbox">
</button> <label>{{ctx.Locale.Tr "repo.template_helper"}}</label>
</div>
</div> </div>
</form> </div>
</div> <br>
<div class="inline field">
<label></label>
<button class="ui primary button{{if not .CanCreateRepo}} disabled{{end}}">
{{ctx.Locale.Tr "repo.create_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,115 +1,113 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{template "base/disable_form_autofill"}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_username">{{ctx.Locale.Tr "username"}}</label> <label for="auth_username">{{ctx.Locale.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}}>
</div> </div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_password">{{ctx.Locale.Tr "password"}}</label> <label for="auth_password">{{ctx.Locale.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>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div id="migrate_items"> <div id="migrate_items">
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox"> <div class="ui checkbox">
<input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}> <input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
</div>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
</div> </div>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
<input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div>
<div class="ui checkbox">
<input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}</label>
</div>
</div> </div>
</div> </div>
<div class="inline field">
<div class="divider"></div> <label></label>
<div class="ui checkbox">
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
<div class="ui selection owner dropdown"> </div>
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <div class="ui checkbox">
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} <label>{{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}</label>
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div>
</div> </div>
</div> </div>
</div>
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <div class="divider"></div>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
</div> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="inline field"> <div class="ui selection owner dropdown">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<div class="ui checkbox"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{if .IsForcedPrivate}} {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
<input name="private" type="checkbox" checked disabled> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label> </span>
{{else}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}> <div class="menu" title="{{.SignedUser.Name}}">
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,116 +1,114 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{template "base/disable_form_autofill"}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div>
<div class="inline required field {{if .Err_Auth}}error{{end}}"> <div class="inline required field {{if .Err_Auth}}error{{end}}">
<label for="aws_access_key_id">{{ctx.Locale.Tr "repo.migrate.codecommit.aws_access_key_id"}}</label> <label for="aws_access_key_id">{{ctx.Locale.Tr "repo.migrate.codecommit.aws_access_key_id"}}</label>
<input id="aws_access_key_id" name="aws_access_key_id" value="{{.aws_access_key_id}}" required> <input id="aws_access_key_id" name="aws_access_key_id" value="{{.aws_access_key_id}}" required>
</div> </div>
<div class="inline required field {{if .Err_Auth}}error{{end}}"> <div class="inline required field {{if .Err_Auth}}error{{end}}">
<label for="aws_secret_access_key">{{ctx.Locale.Tr "repo.migrate.codecommit.aws_secret_access_key"}}</label> <label for="aws_secret_access_key">{{ctx.Locale.Tr "repo.migrate.codecommit.aws_secret_access_key"}}</label>
<input id="aws_secret_access_key" name="aws_secret_access_key" type="password" value="{{.aws_secret_access_key}}" required> <input id="aws_secret_access_key" name="aws_secret_access_key" type="password" value="{{.aws_secret_access_key}}" required>
</div> </div>
<div class="inline required field {{if .Err_Auth}}error{{end}}"> <div class="inline required field {{if .Err_Auth}}error{{end}}">
<label for="auth_username">{{ctx.Locale.Tr "repo.migrate.codecommit.https_git_credentials_username"}}</label> <label for="auth_username">{{ctx.Locale.Tr "repo.migrate.codecommit.https_git_credentials_username"}}</label>
<input id="auth_username" name="auth_username" value="{{.auth_username}}" required> <input id="auth_username" name="auth_username" value="{{.auth_username}}" required>
</div> </div>
<div class="inline required field {{if .Err_Auth}}error{{end}}"> <div class="inline required field {{if .Err_Auth}}error{{end}}">
<label for="auth_password">{{ctx.Locale.Tr "repo.migrate.codecommit.https_git_credentials_password"}}</label> <label for="auth_password">{{ctx.Locale.Tr "repo.migrate.codecommit.https_git_credentials_password"}}</label>
<input id="auth_password" name="auth_password" type="password" value="{{.auth_password}}" required> <input id="auth_password" name="auth_password" type="password" value="{{.auth_password}}" required>
</div>
{{if not .DisableNewPullMirrors}}
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_options"}}</label>
<div class="ui checkbox">
<input id="mirror" name="mirror" type="checkbox" {{if .mirror}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_options_mirror_helper"}}</label>
</div> </div>
</div>
{{end}}
{{if not .DisableNewPullMirrors}} <div id="migrate_items">
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_options"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox"> <div class="ui checkbox">
<input id="mirror" name="mirror" type="checkbox" {{if .mirror}} checked{{end}}> <input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_options_mirror_helper"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
</div> </div>
</div> </div>
{{end}} </div>
<div id="migrate_items"> <div class="divider"></div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox">
<input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
</div>
</div>
</div>
<div class="divider"></div> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="ui selection owner dropdown">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<div class="ui selection owner dropdown"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} </span>
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> {{svg "octicon-triangle-down" 14 "dropdown icon"}}
</span> <div class="menu" title="{{.SignedUser.Name}}">
{{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
<div class="menu" title="{{.SignedUser.Name}}"> {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div> {{range .Orgs}}
</div> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <span class="truncated-item-name">{{.ShortName 40}}</span>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> </div>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,89 +1,87 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{template "base/disable_form_autofill"}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div> <div class="inline field {{if .Err_Auth}}error{{end}}">
<div class="inline field {{if .Err_Auth}}error{{end}}"> <label for="auth_username">{{ctx.Locale.Tr "username"}}</label>
<label for="auth_username">{{ctx.Locale.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}}> </div>
</div> <div class="inline field {{if .Err_Auth}}error{{end}}">
<div class="inline field {{if .Err_Auth}}error{{end}}"> <label for="auth_password">{{ctx.Locale.Tr "password"}}</label>
<label for="auth_password">{{ctx.Locale.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>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div class="divider"></div> <div class="divider"></div>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser}} {{ctx.AvatarUtils.Avatar .ContextUser}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}"> <div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser}} {{ctx.AvatarUtils.Avatar .SignedUser}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar .}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div> {{range .Orgs}}
</div> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar .}}
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <span class="truncated-item-name">{{.ShortName 40}}</span>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> </div>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,131 +1,129 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{template "base/disable_form_autofill"}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_username">{{ctx.Locale.Tr "username"}}</label> <label for="auth_username">{{ctx.Locale.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}}>
</div> </div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_password">{{ctx.Locale.Tr "password"}}</label> <label for="auth_password">{{ctx.Locale.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>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label>
</div>
</div>
<div id="migrate_items" class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label> <label></label>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox"> <div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}}checked{{end}}> <input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div> </div>
</div> </div>
<div class="inline field">
<div id="migrate_items" class="inline field"> <label></label>
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span> <div class="ui checkbox">
<div class="inline field"> <input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label></label> <label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox">
<input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div>
</div> </div>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="releases" type="checkbox" {{if .releases}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
<input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
</div>
<div class="ui checkbox">
<input name="releases" type="checkbox" {{if .releases}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
</div>
</div> </div>
<div class="inline field"> </div>
<label></label> <div class="inline field">
<div class="ui checkbox"> <label></label>
<input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}> <div class="ui checkbox">
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label> <input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}>
</div> <label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
</div> </div>
</div> </div>
</div>
<div class="divider"></div> <div class="divider"></div>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}"> <div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div> {{range .Orgs}}
</div> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <span class="truncated-item-name">{{.ShortName 40}}</span>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> </div>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,127 +1,125 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label> <label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label>
<input id="auth_token" name="auth_token" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}} data-need-clear="true" {{end}}> <input id="auth_token" name="auth_token" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}} data-need-clear="true" {{end}}>
<a target="_blank" href="https://docs.gitea.com/development/api-usage">{{svg "octicon-question"}}</a> <a target="_blank" href="https://docs.gitea.com/development/api-usage">{{svg "octicon-question"}}</a>
</div> </div>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label>
</div>
</div>
<div id="migrate_items" class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label> <label></label>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox"> <div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}} checked{{end}}> <input name="issues" type="checkbox" {{if .issues}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div> </div>
</div> </div>
<div class="inline field">
<div id="migrate_items" class="inline field"> <label></label>
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span> <div class="ui checkbox">
<div class="inline field"> <input name="pull_requests" type="checkbox" {{if .pull_requests}} checked{{end}}>
<label></label> <label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox">
<input name="issues" type="checkbox" {{if .issues}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div>
</div> </div>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="releases" type="checkbox" {{if .releases}} checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
<input name="pull_requests" type="checkbox" {{if .pull_requests}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
</div>
<div class="ui checkbox">
<input name="releases" type="checkbox" {{if .releases}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
</div>
</div> </div>
<div class="inline field"> </div>
<label></label> <div class="inline field">
<div class="ui checkbox"> <label></label>
<input name="milestones" type="checkbox" {{if .milestones}} checked{{end}}> <div class="ui checkbox">
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label> <input name="milestones" type="checkbox" {{if .milestones}} checked{{end}}>
</div> <label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
</div> </div>
</div> </div>
</div>
<div class="divider"></div> <div class="divider"></div>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser}} {{ctx.AvatarUtils.Avatar .ContextUser}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}"> <div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser}} {{ctx.AvatarUtils.Avatar .SignedUser}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div> </div>
{{range .Orgs}} {{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}"> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar .}} {{ctx.AvatarUtils.Avatar .}}
<span class="truncated-item-name">{{.ShortName 40}}</span> <span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div>
</div>
<div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,129 +1,127 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}} </span>
</span> </div>
</div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label> <label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label>
<input id="auth_token" name="auth_token" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}}data-need-clear="true"{{end}}> <input id="auth_token" name="auth_token" type="password" autocomplete="new-password" 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> <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"> <span class="help">
{{ctx.Locale.Tr "repo.migrate.github_token_desc"}} {{ctx.Locale.Tr "repo.migrate.github_token_desc"}}
</span> </span>
</div> </div>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label>
</div>
</div>
<div id="migrate_items" class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label> <label></label>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox"> <div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}}checked{{end}}> <input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div> </div>
</div> </div>
<div id="migrate_items" class="inline field"> <div class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span> <label></label>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox">
<input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div>
</div> </div>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="releases" type="checkbox" {{if .releases}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
<input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
</div>
<div class="ui checkbox">
<input name="releases" type="checkbox" {{if .releases}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
</div>
</div> </div>
<div class="inline field"> </div>
<label></label> <div class="inline field">
<div class="ui checkbox"> <label></label>
<input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}> <div class="ui checkbox">
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label> <input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}>
</div> <label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
</div> </div>
</div> </div>
</div>
<div class="divider"></div> <div class="divider"></div>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}"> <div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div> {{range .Orgs}}
</div> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <span class="truncated-item-name">{{.ShortName 40}}</span>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> </div>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,126 +1,124 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label> <label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label>
<input id="auth_token" name="auth_token" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}}data-need-clear="true"{{end}}> <input id="auth_token" name="auth_token" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}}data-need-clear="true"{{end}}>
<a target="_blank" href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html">{{svg "octicon-question"}}</a> <a target="_blank" href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html">{{svg "octicon-question"}}</a>
</div> </div>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label>
</div>
</div>
<div id="migrate_items" class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label> <label></label>
<div class="ui checkbox"> <div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}}checked{{end}}> <input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox">
<input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div> </div>
</div> </div>
<div id="migrate_items" class="inline field"> <div class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span> <label></label>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}</label>
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox">
<input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div>
</div> </div>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="releases" type="checkbox" {{if .releases}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
<input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}</label>
</div>
<div class="ui checkbox">
<input name="releases" type="checkbox" {{if .releases}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
</div>
</div> </div>
<div class="inline field"> </div>
<label></label> <div class="inline field">
<div class="ui checkbox"> <label></label>
<input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}> <div class="ui checkbox">
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label> <input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}>
</div> <label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
</div> </div>
</div> </div>
</div>
<div class="divider"></div> <div class="divider"></div>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}"> <div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div> {{range .Orgs}}
</div> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <span class="truncated-item-name">{{.ShortName 40}}</span>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> </div>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,129 +1,127 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label> <label for="auth_token">{{ctx.Locale.Tr "access_token"}}</label>
<input id="auth_token" name="auth_token" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}} data-need-clear="true" {{end}}> <input id="auth_token" name="auth_token" type="password" autocomplete="new-password" value="{{.auth_token}}" {{if not .auth_token}} data-need-clear="true" {{end}}>
<!-- <a target="_blank" href="https://docs.gitea.com/development/api-usage">{{svg "octicon-question"}}</a> --> <!-- <a target="_blank" href="https://docs.gitea.com/development/api-usage">{{svg "octicon-question"}}</a> -->
</div> </div>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label>
</div>
</div>
<div id="migrate_items" class="inline field">
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label> <label></label>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox"> <div class="ui checkbox">
<input name="wiki" type="checkbox" {{if .wiki}} checked{{end}}> <input name="issues" type="checkbox" {{if .issues}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label> <label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div> </div>
</div> </div>
<div class="inline field">
<div id="migrate_items" class="inline field"> <label></label>
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span> <div class="ui checkbox">
<div class="inline field"> <input name="milestones" type="checkbox" {{if .milestones}} checked{{end}}>
<label></label> <label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
<div class="ui checkbox">
<input name="issues" type="checkbox" {{if .issues}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div>
</div> </div>
<div class="inline field"> </div>
<label></label> <!-- Gogs do not support it
<div class="ui checkbox"> <div class="inline field">
<input name="milestones" type="checkbox" {{if .milestones}} checked{{end}}> <label></label>
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label> <div class="ui checkbox">
</div> <input name="pull_requests" type="checkbox" {{if .pull_requests}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}</label>
</div> </div>
<!-- Gogs do not support it <div class="ui checkbox">
<div class="inline field"> <input name="releases" type="checkbox" {{if .releases}} checked{{end}}>
<label></label> <label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
<div class="ui checkbox">
<input name="pull_requests" type="checkbox" {{if .pull_requests}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}</label>
</div>
<div class="ui checkbox">
<input name="releases" type="checkbox" {{if .releases}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
</div>
</div> </div>
-->
</div> </div>
-->
</div>
<div class="divider"></div> <div class="divider"></div>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser}} {{ctx.AvatarUtils.Avatar .ContextUser}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}"> <div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser}} {{ctx.AvatarUtils.Avatar .SignedUser}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div> </div>
{{range .Orgs}} {{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}"> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar .}} {{ctx.AvatarUtils.Avatar .}}
<span class="truncated-item-name">{{.ShortName 40}}</span> <span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div>
</div>
<div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}} checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,116 +1,114 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> <div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} <input id="service_type" type="hidden" name="service" value="{{.service}}">
<input id="service_type" type="hidden" name="service" value="{{.service}}"> </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{template "base/disable_form_autofill"}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_CloneAddr}}error{{end}}">
<div class="inline required field {{if .Err_CloneAddr}}error{{end}}"> <label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
<label for="clone_addr">{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label> <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"> {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} </span>
</span> </div>
</div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_username">{{ctx.Locale.Tr "username"}}</label> <label for="auth_username">{{ctx.Locale.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}}>
</div> </div>
<div class="inline field {{if .Err_Auth}}error{{end}}"> <div class="inline field {{if .Err_Auth}}error{{end}}">
<label for="auth_password">{{ctx.Locale.Tr "password"}}</label> <label for="auth_password">{{ctx.Locale.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>
{{template "repo/migrate/options" .}} {{template "repo/migrate/options" .}}
<div id="migrate_items" class="inline field"> <div id="migrate_items" class="inline field">
<label></label>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
<div class="ui checkbox">
<input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
</div>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
</div>
<div class="inline field">
<label></label> <label></label>
<div class="inline field"> <div class="ui checkbox">
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label> <input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
<input name="milestones" type="checkbox" {{if .milestones}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
</div>
<div class="ui checkbox">
<input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
</div>
</div> </div>
<div class="inline field"> <div class="ui checkbox">
<label></label> <input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<div class="ui checkbox"> <label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
<input name="issues" type="checkbox" {{if .issues}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
</div>
<div class="ui checkbox">
<input name="pull_requests" type="checkbox" {{if .pull_requests}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.migrate_items_pullrequests"}}</label>
</div>
</div> </div>
</div> </div>
</div>
<div class="divider"></div> <div class="divider"></div>
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <div class="inline required field {{if .Err_Owner}}error{{end}}">
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<div class="ui selection owner dropdown"> <div class="ui selection owner dropdown">
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
</span> </span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu" title="{{.SignedUser.Name}}"> <div class="menu" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}"> <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}">
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}} {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
</div>
{{range .Orgs}}
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<span class="truncated-item-name">{{.ShortName 40}}</span>
</div>
{{end}}
</div> </div>
</div> {{range .Orgs}}
</div> <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
{{ctx.AvatarUtils.Avatar . 28 "mini"}}
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <span class="truncated-item-name">{{.ShortName 40}}</span>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> </div>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}} {{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label></label> <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<button class="ui primary button"> <input id="repo_name" name="repo_name" value="{{.repo_name}}" required maxlength="100">
{{ctx.Locale.Tr "repo.migrate_repo"}} </div>
</button> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox">
{{if .IsForcedPrivate}}
<input name="private" type="checkbox" checked disabled>
<label>{{ctx.Locale.Tr "repo.visibility_helper_forced"}}</label>
{{else}}
<input name="private" type="checkbox" {{if .private}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
{{end}}
</div> </div>
</form> </div>
</div> <div class="inline field {{if .Err_Description}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
<textarea id="description" name="description" maxlength="2048">{{.description}}</textarea>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">
{{ctx.Locale.Tr "repo.migrate_repo"}}
</button>
</div>
</form>
</div> </div>
</div> </div>
</div> </div>

@ -1,87 +1,85 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository new fork"> <div role="main" aria-label="{{.Title}}" class="page-content repository new fork">
<div class="ui middle very relaxed page grid"> <div class="ui container medium-width">
<div class="column"> <h3 class="ui top attached header">
<h3 class="ui top attached header"> {{ctx.Locale.Tr "new_fork"}}
{{ctx.Locale.Tr "new_fork"}} </h3>
</h3> <div class="ui attached segment">
<div class="ui attached segment"> {{template "base/alert" .}}
{{template "base/alert" .}} <form class="ui form left-right-form" action="{{.Link}}" method="post">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}}
{{.CsrfTokenHtml}} <div class="inline required field {{if .Err_Owner}}error{{end}}">
<div class="inline required field {{if .Err_Owner}}error{{end}}"> <label>{{ctx.Locale.Tr "repo.owner"}}</label>
<label>{{ctx.Locale.Tr "repo.owner"}}</label> <div class="ui selection owner dropdown">
<div class="ui selection owner dropdown"> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> <span class="text truncated-item-container" title="{{.ContextUser.Name}}">
<span class="text truncated-item-container" title="{{.ContextUser.Name}}"> {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}}
{{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span>
<span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> </span>
</span> {{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu">
<div class="menu"> {{if .CanForkToUser}}
{{if .CanForkToUser}} <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}">
<div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}}
{{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}} <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span>
<span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> </div>
</div> {{end}}
{{end}} {{range .Orgs}}
{{range .Orgs}} <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}">
<div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}"> {{ctx.AvatarUtils.Avatar . 28 "mini"}}
{{ctx.AvatarUtils.Avatar . 28 "mini"}} <span class="truncated-item-name">{{.ShortName 40}}</span>
<span class="truncated-item-name">{{.ShortName 40}}</span> </div>
</div> {{end}}
{{end}}
</div>
</div> </div>
</div> </div>
</div>
<div class="inline field"> <div class="inline field">
<label>{{ctx.Locale.Tr "repo.fork_from"}}</label> <label>{{ctx.Locale.Tr "repo.fork_from"}}</label>
<a href="{{.ForkRepo.Link}}" class="tw-inline-block">{{.ForkRepo.FullName}}</a> <a href="{{.ForkRepo.Link}}" class="tw-inline-block">{{.ForkRepo.FullName}}</a>
</div>
<div class="inline required field {{if .Err_RepoName}}error{{end}}">
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required>
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label>
<div class="ui disabled checkbox">
<input type="checkbox" disabled {{if .IsPrivate}}checked{{end}}>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
</div> </div>
<div class="inline required field {{if .Err_RepoName}}error{{end}}"> <span class="help">{{ctx.Locale.Tr "repo.fork_visibility_helper"}}</span>
<label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> </div>
<input id="repo_name" name="repo_name" value="{{.repo_name}}" required> <div class="inline field">
</div> <label>{{ctx.Locale.Tr "repo.fork_branch"}}</label>
<div class="inline field"> <div class="ui selection dropdown ellipsis-items-nowrap">
<label>{{ctx.Locale.Tr "repo.visibility"}}</label> <input type="hidden" id="fork_single_branch" name="fork_single_branch" value="" required>
<div class="ui disabled checkbox"> <div class="text" title="{{ctx.Locale.Tr "repo.all_branches"}}">
<input type="checkbox" disabled {{if .IsPrivate}}checked{{end}}> <span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span>
<label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label>
</div> </div>
<span class="help">{{ctx.Locale.Tr "repo.fork_visibility_helper"}}</span> {{svg "octicon-triangle-down" 14 "dropdown icon"}}
</div> <div class="menu">
<div class="inline field"> <div class="item" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
<label>{{ctx.Locale.Tr "repo.fork_branch"}}</label> {{ctx.Locale.Tr "repo.all_branches"}}
<div class="ui selection dropdown ellipsis-items-nowrap">
<input type="hidden" id="fork_single_branch" name="fork_single_branch" value="" required>
<div class="text" title="{{ctx.Locale.Tr "repo.all_branches"}}">
<span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span>
</div>
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu">
<div class="item" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}">
{{ctx.Locale.Tr "repo.all_branches"}}
</div>
{{range .Branches}}
<div class="item" data-value="{{.}}" title="{{.}}">{{.}}</div>
{{end}}
</div> </div>
{{range .Branches}}
<div class="item" data-value="{{.}}" title="{{.}}">{{.}}</div>
{{end}}
</div> </div>
</div> </div>
<div class="inline field {{if .Err_Description}}error{{end}}"> </div>
<label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> <div class="inline field {{if .Err_Description}}error{{end}}">
<textarea id="description" name="description">{{.description}}</textarea> <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label>
</div> <textarea id="description" name="description">{{.description}}</textarea>
</div>
<div class="inline field"> <div class="inline field">
<label></label> <label></label>
<button class="ui primary button{{if not .CanForkRepo}} disabled{{end}}"> <button class="ui primary button{{if not .CanForkRepo}} disabled{{end}}">
{{ctx.Locale.Tr "repo.fork_repo"}} {{ctx.Locale.Tr "repo.fork_repo"}}
</button> </button>
</div> </div>
</form> </form>
</div>
</div> </div>
</div> </div>
</div> </div>

@ -1,36 +1,36 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content user signup"> <div role="main" aria-label="{{.Title}}" class="page-content user signup">
{{template "user/auth/signup_openid_navbar" .}} {{template "user/auth/signup_openid_navbar" .}}
<div class="ui container"> <div class="ui container medium-width">
{{template "base/alert" .}} {{template "base/alert" .}}
<h4 class="ui top attached header"> <h4 class="ui top attached header">
{{ctx.Locale.Tr "auth.openid_connect_title"}} {{ctx.Locale.Tr "auth.openid_connect_title"}}
</h4> </h4>
<div class="ui attached segment"> <div class="ui attached segment">
<form class="ui form left-right-form" action="{{.Link}}" method="post"> <form class="ui form left-right-form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}} {{.CsrfTokenHtml}}
<div class="inline field"> <div class="inline field">
<span class="help">{{ctx.Locale.Tr "auth.openid_connect_desc"}}</span> <span class="help">{{ctx.Locale.Tr "auth.openid_connect_desc"}}</span>
</div>
<div class="required inline field {{if .Err_UserName}}error{{end}}">
<label for="user_name">{{ctx.Locale.Tr "home.uname_holder"}}</label>
<input id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required>
</div>
<div class="required inline field {{if .Err_Password}}error{{end}}">
<label for="password">{{ctx.Locale.Tr "password"}}</label>
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
</div>
<div class="inline field">
<label for="openid">OpenID URI</label>
<input id="openid" value="{{.OpenID}}" readonly>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">{{ctx.Locale.Tr "auth.openid_connect_submit"}}</button>
<a href="{{AppSubUrl}}/user/forgot_password">{{ctx.Locale.Tr "auth.forgot_password"}}</a>
</div>
</form>
</div> </div>
<div class="required inline field {{if .Err_UserName}}error{{end}}">
<label for="user_name">{{ctx.Locale.Tr "home.uname_holder"}}</label>
<input id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required>
</div>
<div class="required inline field {{if .Err_Password}}error{{end}}">
<label for="password">{{ctx.Locale.Tr "password"}}</label>
<input id="password" name="password" type="password" value="{{.password}}" autocomplete="off" required>
</div>
<div class="inline field">
<label for="openid">OpenID URI</label>
<input id="openid" value="{{.OpenID}}" readonly>
</div>
<div class="inline field">
<label></label>
<button class="ui primary button">{{ctx.Locale.Tr "auth.openid_connect_submit"}}</button>
<a href="{{AppSubUrl}}/user/forgot_password">{{ctx.Locale.Tr "auth.forgot_password"}}</a>
</div>
</form>
</div>
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer" .}}

@ -155,6 +155,7 @@ textarea:focus,
} }
.ui.form.left-right-form .inline.field > .help { .ui.form.left-right-form .inline.field > .help {
display: block;
margin-left: calc(250px + 15px); margin-left: calc(250px + 15px);
} }

@ -11,6 +11,9 @@
.ui.fluid.container { .ui.fluid.container {
width: 100%; width: 100%;
} }
.ui.container.medium-width {
width: 800px;
}
.ui[class*="center aligned"].container { .ui[class*="center aligned"].container {
text-align: center; text-align: center;

Loading…
Cancel
Save