|
|
|
@ -903,6 +903,8 @@ public class YaCyDefaultServlet extends HttpServlet {
|
|
|
|
|
templatePatterns.putHTML("newpeer_peerhash", myPeer.hash);
|
|
|
|
|
boolean authorized = sb.adminAuthenticated(legacyRequestHeader) >= 2;
|
|
|
|
|
templatePatterns.put("authorized", authorized ? 1 : 0);
|
|
|
|
|
|
|
|
|
|
templatePatterns.put("simpleheadernavbar", sb.getConfig("decoration.simpleheadernavbar", "navbar-default"));
|
|
|
|
|
|
|
|
|
|
// add navigation keys to enable or disable menu items
|
|
|
|
|
templatePatterns.put("navigation-p2p", sb.getConfigBool(SwitchboardConstants.DHT_ENABLED, true) || !sb.isRobinsonMode() ? 1 : 0);
|
|
|
|
|