Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- changed grammar in ViewProfile.html to comply with peer-names ending on i.e. 's' - removed restart-button on non-Windows platforms (until start-script is adjusted) - margin for <dt>s with more than one line
karlchenofhell06152cdf6d2e
diff --git a/htroot/Status.html b/htroot/Status.htmlindex 6b7b15b1e..9caef839f 100644--- a/htroot/Status.html+++ b/htroot/Status.html@@ -12,8 +12,8 @@<p>Welcome to YaCy!</p><form action="Steering.html" method="get" class="PeerControl">- <fieldset>- <input type="submit" name="restart" value="Restart (only Windows)" />+ <fieldset>#(restartEnabled)#::+ <input type="submit" name="restart" value="Restart" />#(/restartEnabled)#<input type="submit" name="shutdown" value="Shutdown" /></fieldset></form>diff --git a/htroot/Status.java b/htroot/Status.javaindex 3c68e1232..8b7cfd985 100644--- a/htroot/Status.java+++ b/htroot/Status.java@@ -143,6 +143,10 @@ public class Status {prop.put("protection", 1); // protected}+ // if running on Windows, enable restart button+ // (remove from servlet when Linux start-script is capable, too)+ prop.put("restartEnabled", (System.getProperty("os.name").toLowerCase().startsWith("win")) ? 1 : 0);+// version informationprop.put("versionpp", yacy.combined2prettyVersion(env.getConfig("version","0.1")));double thisVersion = Double.parseDouble(env.getConfig("version","0.1"));diff --git a/htroot/ViewProfile.html b/htroot/ViewProfile.htmlindex 96e41efba..11f669717 100644--- a/htroot/ViewProfile.html+++ b/htroot/ViewProfile.html@@ -23,7 +23,7 @@::<p class="error">The peer #[peername]# is not online.</p>::- <h3>This is #[peername]#'s Profile:</h3>+ <h3>This is the Profile of #[peername]#:</h3><dl class="pairs"><dt>Name</dt>diff --git a/htroot/env/base.css b/htroot/env/base.cssindex e37b47b23..60056c5e3 100644--- a/htroot/env/base.css+++ b/htroot/env/base.css@@ -350,7 +350,7 @@ form dt, dl.pairs dt {float:left;clear:left;width:17em;- margin:0 2px;+ margin:0 2px 0.5em 2px;padding:0.2em 0.5em;text-align:right;}