Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

small pi link on index page to administration pages

f1orifdc84d8319ef
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)#::
+ <div style="position:fixed; bottom: 0; right: 1px;"><a href="/Status.html">&pi;</a></div>
+ #(/pi)#
+
<h2 class="yacy">
<a href="#[promoteSearchPageGreeting.homepage]#" class="yacylogo"><img src="#[promoteSearchPageGreeting.largeImage]#" alt="yacy" style="margin: auto;"/></a><br /><br />
#[promoteSearchPageGreeting]#
@@ -153,4 +157,4 @@
<img src="cytag.png?icon=invisible&amp;nick=yacyh_#[clientid]#&amp;tag=search" alt=""/>
</p>
</body>
-</html>
\ No newline at end of file
+</html>
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);