diff options
author | Gergely Nagy <forgejo@gergo.csillger.hu> | 2024-05-28 08:53:31 +0200 |
---|---|---|
committer | Gergely Nagy <forgejo@gergo.csillger.hu> | 2024-05-28 08:53:31 +0200 |
commit | 95808a3cfde46bdfd345de21d44a222051cf71ba (patch) | |
tree | b21d7db20a29287b6d735ffb72ef1833ecdb0514 /templates/install.tmpl | |
parent | Merge pull request 'Update dependency updates to v16.1.1' (#3920) from renova... (diff) | |
download | forgejo-95808a3cfde46bdfd345de21d44a222051cf71ba.tar.xz forgejo-95808a3cfde46bdfd345de21d44a222051cf71ba.zip |
install: Make "Disable self-registration" more prominent
Having an instance with open registration requires work, otherwise it
will be overrun by spammers of all kinds. Yet, the setting to disable
open registration on the installation page is hidden behind "optional
settings", a place hardly anyone ever looks.
To improve the situation, lift the setting out of that, and place it
more prominently, just above the update checker setting.
Partially addresses #3925.
Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
Diffstat (limited to 'templates/install.tmpl')
-rw-r--r-- | templates/install.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl index 682e1e6511..6e537d2477 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -148,6 +148,12 @@ <span class="help">{{ctx.Locale.Tr "install.log_root_path_helper"}}</span> </div> <div class="inline field"> + <div class="ui checkbox" id="disable-registration"> + <label data-tooltip-content="{{ctx.Locale.Tr "install.disable_registration_popup"}}">{{ctx.Locale.Tr "install.disable_registration"}}</label> + <input name="disable_registration" type="checkbox" {{if .disable_registration}}checked{{end}}> + </div> + </div> + <div class="inline field"> <div class="ui checkbox"> <label>{{ctx.Locale.Tr "install.enable_update_checker"}}</label> <input name="enable_update_checker" type="checkbox" {{if .enable_update_checker}}checked{{end}}> @@ -228,12 +234,6 @@ </div> </div> <div class="inline field"> - <div class="ui checkbox" id="disable-registration"> - <label data-tooltip-content="{{ctx.Locale.Tr "install.disable_registration_popup"}}">{{ctx.Locale.Tr "install.disable_registration"}}</label> - <input name="disable_registration" type="checkbox" {{if .disable_registration}}checked{{end}}> - </div> - </div> - <div class="inline field"> <div class="ui checkbox" id="allow-only-external-registration"> <label data-tooltip-content="{{ctx.Locale.Tr "install.allow_only_external_registration_popup"}}">{{ctx.Locale.Tr "install.allow_only_external_registration_popup"}}</label> <input name="allow_only_external_registration" type="checkbox" {{if .allow_only_external_registration}}checked{{end}}> |