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