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.4KB

1234567891011121314151617181920212223242526272829
  1. <div class="inline field">
  2. <label>{{.i18n.Tr "repo.migrate_options"}}</label>
  3. <div class="ui checkbox">
  4. {{if .DisableMirrors}}
  5. <input id="mirror" name="mirror" type="checkbox" readonly>
  6. <label>{{.i18n.Tr "repo.migrate_options_mirror_disabled"}}</label>
  7. {{else}}
  8. <input id="mirror" name="mirror" type="checkbox" {{if .mirror}} checked{{end}}>
  9. <label>{{.i18n.Tr "repo.migrate_options_mirror_helper" | Safe}}</label>
  10. {{end}}
  11. </div>
  12. </div>
  13. {{if .LFSActive}}
  14. <div class="inline field">
  15. <label></label>
  16. <div class="ui checkbox">
  17. <input id="lfs" name="lfs" type="checkbox" {{if .lfs}} checked{{end}}>
  18. <label>{{.i18n.Tr "repo.migrate_options_lfs"}}</label>
  19. </div>
  20. <span id="lfs_settings" style="display:none">(<a id="lfs_settings_show" href="#">{{.i18n.Tr "repo.settings.advanced_settings"}}</a>)</span>
  21. </div>
  22. <div id="lfs_endpoint" style="display:none">
  23. <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>
  24. <div class="inline field {{if .Err_LFSEndpoint}}error{{end}}">
  25. <label>{{.i18n.Tr "repo.migrate_options_lfs_endpoint.label"}}</label>
  26. <input name="lfs_endpoint" value="{{.lfs_endpoint}}" placeholder="{{.i18n.Tr "repo.migrate_options_lfs_endpoint.placeholder"}}">
  27. </div>
  28. </div>
  29. {{end}}