1b99c72fcSAdam Hornáček<%-- 2b99c72fcSAdam HornáčekCDDL HEADER START 3b99c72fcSAdam Hornáček 4b99c72fcSAdam HornáčekThe contents of this file are subject to the terms of the 5b99c72fcSAdam HornáčekCommon Development and Distribution License (the "License"). 6b99c72fcSAdam HornáčekYou may not use this file except in compliance with the License. 7b99c72fcSAdam Hornáček 8b99c72fcSAdam HornáčekSee LICENSE.txt included in this distribution for the specific 9b99c72fcSAdam Hornáčeklanguage governing permissions and limitations under the License. 10b99c72fcSAdam Hornáček 11b99c72fcSAdam HornáčekWhen distributing Covered Code, include this CDDL HEADER in each 12b99c72fcSAdam Hornáčekfile and include the License file at LICENSE.txt. 13b99c72fcSAdam HornáčekIf applicable, add the following below this CDDL HEADER, with the 14b99c72fcSAdam Hornáčekfields enclosed by brackets "[]" replaced with your own identifying 15b99c72fcSAdam Hornáčekinformation: Portions Copyright [yyyy] [name of copyright owner] 16b99c72fcSAdam Hornáček 17b99c72fcSAdam HornáčekCDDL HEADER END 18b99c72fcSAdam Hornáček 19b99c72fcSAdam HornáčekCopyright (c) 2021, Oracle and/or its affiliates. All rights reserved. 20b99c72fcSAdam Hornáček--%> 21b99c72fcSAdam Hornáček<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 22b99c72fcSAdam Hornáček<%@page session="false" errorPage="error.jsp" import="org.opengrok.web.PageConfig" %> 23b99c72fcSAdam Hornáček<%@ page import="org.opengrok.indexer.configuration.RuntimeEnvironment" %> 24b99c72fcSAdam Hornáček<% 25b99c72fcSAdam Hornáček { 26b99c72fcSAdam Hornáček PageConfig cfg = PageConfig.get(request); 27b99c72fcSAdam Hornáček cfg.setTitle("OpenGrok Settings"); 28b99c72fcSAdam Hornáček } 29b99c72fcSAdam Hornáček%> 30b99c72fcSAdam Hornáček<%@ include file="httpheader.jspf" %> 31b99c72fcSAdam Hornáček<body> 32b99c72fcSAdam Hornáček<div id="page"> 33*aa18fa28SAdam Hornacek <header id="whole_header"> 34b99c72fcSAdam Hornáček <%@include file="pageheader.jspf" %> 35b99c72fcSAdam Hornáček <div id="Masthead"> 36b99c72fcSAdam Hornáček <a href="<%= request.getContextPath() %>/"><span id="home"></span>Home</a> 37b99c72fcSAdam Hornáček </div> 38*aa18fa28SAdam Hornacek </header> 39b99c72fcSAdam Hornáček <div id="sbar"></div> 40b99c72fcSAdam Hornáček <div style="padding-left: 1rem;"> 41b99c72fcSAdam Hornáček <h1>Settings</h1> 42b99c72fcSAdam Hornáček <h3 class="header-half-bottom-margin">Suggester</h3> 43b99c72fcSAdam Hornáček <% 44b99c72fcSAdam Hornáček boolean suggesterEnabled = RuntimeEnvironment.getInstance().getSuggesterConfig().isEnabled(); 45b99c72fcSAdam Hornáček %> 46b99c72fcSAdam Hornáček <label>Enabled 47b99c72fcSAdam Hornáček <input class="local-setting" name="suggester-enabled" type="checkbox" data-checked-value="true" 48b99c72fcSAdam Hornáček data-unchecked-value="false" data-default-value="<%= suggesterEnabled ? "true" : "false" %>" 49b99c72fcSAdam Hornáček <%= suggesterEnabled ? "" : "disabled" %> 50b99c72fcSAdam Hornáček onchange="onSettingsValueChange(this)"> 51b99c72fcSAdam Hornáček </label> 52b99c72fcSAdam Hornáček <br> 53b99c72fcSAdam Hornáček <br> 54b99c72fcSAdam Hornáček <input class="submit btn no-margin-left" onclick="resetAllSettings()" type="button" value="Reset to defaults"/> 55b99c72fcSAdam Hornáček </div> 56b99c72fcSAdam Hornáček</div> 57b99c72fcSAdam Hornáček<script type="text/javascript"> 58b99c72fcSAdam Hornáček /* <![CDATA[ */ 59b99c72fcSAdam Hornáček document.pageReady.push(() => initSettings()); 60b99c72fcSAdam Hornáček /* ]]> */ 61b99c72fcSAdam Hornáček</script> 62b99c72fcSAdam Hornáček<%@include file="foot.jspf" %> 63