option in network servlet to show the servlet with simple or embed menus

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7447 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 991b92f4ae
commit 1bda9e7ed9

@ -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&nbsp;Peers</a></li>
</ul>
</div>
#(/menu)#
#(page)#
<h2>Overview of '#[networkName]#' Network</h2>
::

@ -63,6 +63,8 @@ public class Network {
// return variable that accumulates replacements
final 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"));

Loading…
Cancel
Save