diff --git a/defaults/yacy.init b/defaults/yacy.init index d74529a1e..aa8e7f955 100644 --- a/defaults/yacy.init +++ b/defaults/yacy.init @@ -893,6 +893,11 @@ publicSearchpage = true # to /Status.html to get the main memu bar back publicTopmenu = true +# flag if a small link to the administration sites on the right bottom of the index +# page should be shown to all users. +# you might want to enabled this, if publicTopmenu is disabled +publicAdministratorPi = false + # Wiki access rights # the built-in wiki system allows by default only that the administrator is allowed to make changes # this can be changed. There are three options: diff --git a/htroot/index.html b/htroot/index.html index 9338e3bc7..b866ca70c 100644 --- a/htroot/index.html +++ b/htroot/index.html @@ -40,6 +40,10 @@ #%env/templates/simpleheader.template%# #(/topmenu)# + #(pi)#:: +
π
+ #(/pi)# +



#[promoteSearchPageGreeting]# @@ -153,4 +157,4 @@

- \ No newline at end of file + diff --git a/htroot/index.java b/htroot/index.java index 6414b972f..bb1736941 100644 --- a/htroot/index.java +++ b/htroot/index.java @@ -117,6 +117,7 @@ public class index { prop.put("type", type); prop.put("depth", "0"); prop.put("topmenu", sb.getConfigBool("publicTopmenu", true) ? 1 : 0); + prop.put("pi", sb.getConfigBool("publicAdministratorPi", false) ? 1 : 0); prop.putHTML("constraint", constraint); prop.put("searchdomswitches", sb.getConfigBool("search.text", true) || sb.getConfigBool("search.audio", true) || sb.getConfigBool("search.video", true) || sb.getConfigBool("search.image", true) || sb.getConfigBool("search.app", true) ? 1 : 0); prop.put("searchdomswitches_searchtext", sb.getConfigBool("search.text", true) ? 1 : 0);