- 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 

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3209 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
karlchenofhell 18 years ago
parent aedb34a988
commit 06152cdf6d

@ -12,8 +12,8 @@
<p>Welcome to YaCy!</p> <p>Welcome to YaCy!</p>
<form action="Steering.html" method="get" class="PeerControl"> <form action="Steering.html" method="get" class="PeerControl">
<fieldset> <fieldset>#(restartEnabled)#::
<input type="submit" name="restart" value="Restart (only Windows)" /> <input type="submit" name="restart" value="Restart" />#(/restartEnabled)#
<input type="submit" name="shutdown" value="Shutdown" /> <input type="submit" name="shutdown" value="Shutdown" />
</fieldset> </fieldset>
</form> </form>

@ -143,6 +143,10 @@ public class Status {
prop.put("protection", 1); // protected 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 information // version information
prop.put("versionpp", yacy.combined2prettyVersion(env.getConfig("version","0.1"))); prop.put("versionpp", yacy.combined2prettyVersion(env.getConfig("version","0.1")));
double thisVersion = Double.parseDouble(env.getConfig("version","0.1")); double thisVersion = Double.parseDouble(env.getConfig("version","0.1"));

@ -23,7 +23,7 @@
:: ::
<p class="error">The peer #[peername]# is not online.</p> <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"> <dl class="pairs">
<dt>Name</dt> <dt>Name</dt>

@ -350,7 +350,7 @@ form dt, dl.pairs dt {
float:left; float:left;
clear:left; clear:left;
width:17em; width:17em;
margin:0 2px; margin:0 2px 0.5em 2px;
padding:0.2em 0.5em; padding:0.2em 0.5em;
text-align:right; text-align:right;
} }

Loading…
Cancel
Save