summaryrefslogtreecommitdiffstats
path: root/templates/repo/migrate/options.tmpl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-12-12 23:57:56 +0100
commite68b9d00a6e05b3a941f63ffb696f91e554ac5ec (patch)
tree97775d6c13b0f416af55314eb6a89ef792474615 /templates/repo/migrate/options.tmpl
parentInitial commit. (diff)
downloadforgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.tar.xz
forgejo-e68b9d00a6e05b3a941f63ffb696f91e554ac5ec.zip
Adding upstream version 9.0.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'templates/repo/migrate/options.tmpl')
-rw-r--r--templates/repo/migrate/options.tmpl26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/repo/migrate/options.tmpl b/templates/repo/migrate/options.tmpl
new file mode 100644
index 0000000..8a46e57
--- /dev/null
+++ b/templates/repo/migrate/options.tmpl
@@ -0,0 +1,26 @@
+{{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>
+{{end}}
+{{if .LFSActive}}
+<div class="inline field">
+ <label></label>
+ <div class="ui checkbox">
+ <input id="lfs" name="lfs" type="checkbox" {{if .lfs}} checked{{end}}>
+ <label>{{ctx.Locale.Tr "repo.migrate_options_lfs"}}</label>
+ </div>
+ <span id="lfs_settings" class="tw-hidden">(<a id="lfs_settings_show" href="#">{{ctx.Locale.Tr "repo.settings.advanced_settings"}}</a>)</span>
+</div>
+<div id="lfs_endpoint" class="tw-hidden">
+ <span class="help">{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description.local"}}{{end}}</span>
+ <div class="inline field {{if .Err_LFSEndpoint}}error{{end}}">
+ <label>{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.label"}}</label>
+ <input name="lfs_endpoint" value="{{.lfs_endpoint}}" placeholder="{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.placeholder"}}">
+ </div>
+</div>
+{{end}}