mirror of
https://github.com/go-gitea/gitea
synced 2024-12-30 20:44:27 +00:00
63d7cbcef1
Rename`[repository]` `DISABLE_MIRRORS` to `[mirror]` `DISABLE_NEW_PULL` and add `ENABLED` and `DISABLE_NEW_PUSH` with the below meanings: - `ENABLED`: **true**: Enables the mirror functionality. Set to **false** to disable all mirrors. - `DISABLE_NEW_PULL`: **false**: Disable the creation of **new** mirrors. Pre-existing mirrors remain valid. - `DISABLE_NEW_PUSH`: **false**: Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: delvh <dev.lh@web.de>
30 lines
1.4 KiB
Handlebars
30 lines
1.4 KiB
Handlebars
<div class="inline field">
|
|
<label>{{.i18n.Tr "repo.migrate_options"}}</label>
|
|
<div class="ui checkbox">
|
|
{{if .DisableNewPullMirrors}}
|
|
<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}}
|