You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

options.tmpl 1.3KB

1234567891011121314151617181920212223242526
  1. {{if not .DisableNewPullMirrors}}
  2. <div class="inline field">
  3. <label>{{.locale.Tr "repo.migrate_options"}}</label>
  4. <div class="ui checkbox">
  5. <input id="mirror" name="mirror" type="checkbox" {{if .mirror}} checked{{end}}>
  6. <label>{{.locale.Tr "repo.migrate_options_mirror_helper"}}</label>
  7. </div>
  8. </div>
  9. {{end}}
  10. {{if .LFSActive}}
  11. <div class="inline field">
  12. <label></label>
  13. <div class="ui checkbox">
  14. <input id="lfs" name="lfs" type="checkbox" {{if .lfs}} checked{{end}}>
  15. <label>{{.locale.Tr "repo.migrate_options_lfs"}}</label>
  16. </div>
  17. <span id="lfs_settings" class="gt-hidden">(<a id="lfs_settings_show" href="#">{{.locale.Tr "repo.settings.advanced_settings"}}</a>)</span>
  18. </div>
  19. <div id="lfs_endpoint" class="gt-hidden">
  20. <span class="help">{{.locale.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}} {{.locale.Tr "repo.migrate_options_lfs_endpoint.description.local"}}{{end}}</span>
  21. <div class="inline field {{if .Err_LFSEndpoint}}error{{end}}">
  22. <label>{{.locale.Tr "repo.migrate_options_lfs_endpoint.label"}}</label>
  23. <input name="lfs_endpoint" value="{{.lfs_endpoint}}" placeholder="{{.locale.Tr "repo.migrate_options_lfs_endpoint.placeholder"}}">
  24. </div>
  25. </div>
  26. {{end}}