2021-04-09 06:25:57 +08:00
|
|
|
<div class="inline field">
|
|
|
|
<label>{{.i18n.Tr "repo.migrate_options"}}</label>
|
|
|
|
<div class="ui checkbox">
|
2021-09-07 23:49:36 +08:00
|
|
|
{{if .DisableNewPullMirrors}}
|
2021-04-09 06:25:57 +08:00
|
|
|
<input id="mirror" name="mirror" type="checkbox" readonly>
|
|
|
|
<label>{{.i18n.Tr "repo.migrate_options_mirror_disabled"}}</label>
|
|
|
|
{{else}}
|
|
|
|
<input id="mirror" name="mirror" type="checkbox" {{if .mirror}} checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.migrate_options_mirror_helper" | Safe}}</label>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{if .LFSActive}}
|
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input id="lfs" name="lfs" type="checkbox" {{if .lfs}} checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.migrate_options_lfs"}}</label>
|
|
|
|
</div>
|
|
|
|
<span id="lfs_settings" style="display:none">(<a id="lfs_settings_show" href="#">{{.i18n.Tr "repo.settings.advanced_settings"}}</a>)</span>
|
|
|
|
</div>
|
|
|
|
<div id="lfs_endpoint" style="display:none">
|
|
|
|
<span class="help">{{.i18n.Tr "repo.migrate_options_lfs_endpoint.description" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery" | Str2html}}{{if .ContextUser.CanImportLocal}} {{.i18n.Tr "repo.migrate_options_lfs_endpoint.description.local"}}{{end}}</span>
|
|
|
|
<div class="inline field {{if .Err_LFSEndpoint}}error{{end}}">
|
|
|
|
<label>{{.i18n.Tr "repo.migrate_options_lfs_endpoint.label"}}</label>
|
|
|
|
<input name="lfs_endpoint" value="{{.lfs_endpoint}}" placeholder="{{.i18n.Tr "repo.migrate_options_lfs_endpoint.placeholder"}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|