Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
option in network servlet to show the servlet with simple or embed menus
orbiter1bda9e7ed9ab
diff --git a/htroot/Network.html b/htroot/Network.htmlindex 87fd2245d..335b4552e 100644--- a/htroot/Network.html+++ b/htroot/Network.html@@ -60,8 +60,13 @@ document.getElementById('apilink').setAttribute('href', 'Network.xml?' + window.Click the API icon to see the XML.To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span></div>-- #%env/templates/header.template%#++ #(menu)#+ #%env/templates/embeddedheader.template%#+ ::+ #%env/templates/simpleheader.template%#+ ::+ #%env/templates/header.template%#<div class="SubMenu"><h3>YaCy Network</h3><ul class="SubMenu">@@ -71,6 +76,8 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de<li><a href="/Network.html?page=3" class="MenuItemLink">Potential Peers</a></li></ul></div>+ #(/menu)#+#(page)#<h2>Overview of '#[networkName]#' Network</h2>::diff --git a/htroot/Network.java b/htroot/Network.javaindex 3e78cde15..fdf26eba4 100644--- a/htroot/Network.java+++ b/htroot/Network.java@@ -63,6 +63,8 @@ public class Network {// return variable that accumulates replacementsfinal serverObjects prop = new serverObjects();+ prop.put("menu", post == null ? 2 : (post.get("menu", "").equals("embed")) ? 0 : (post.get("menu","").equals("simple")) ? 1 : 2);+prop.setLocalized(!(requestHeader.get(HeaderFramework.CONNECTION_PROP_PATH)).endsWith(".xml"));prop.putHTML("page_networkTitle", sb.getConfig("network.unit.description", "unspecified"));prop.putHTML("page_networkName", sb.getConfig(SwitchboardConstants.NETWORK_NAME, "unspecified"));