summaryrefslogtreecommitdiff
path: root/htroot
diff options
context:
space:
mode:
authormikeworks <mikeworks@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-07-25 13:19:16 +0000
committermikeworks <mikeworks@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-07-25 13:19:16 +0000
commitaa663cda4d883c7ae38e94c1948939e83ce0c72d (patch)
tree58749966de5aeee25fc88bb30e8f18251e852371 /htroot
parentafd1cd79795f5d7264787fa311b73c07deaa3d4c (diff)
ConfigUpdate_p.html and ConfigUpdate_p.java: Added check for downloaded releases and disabled buttons in case no new releases available
de.lng: Updated German translation for additional String in ConfigUpdate_p.html XHTML 1.0 Strict fixes for all the other .html files yacy/ui/css/yacyui-portalsearch.css: added .hidden class that was removed from ConfigProperties_p.html Switchboard.java: Added URL for thread Remote Crawl Job and set URL for Remote Crawl URL Loader to null to fix empty href="" git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6996 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot')
-rw-r--r--htroot/ConfigAccounts_p.html2
-rw-r--r--htroot/ConfigNetwork_p.html12
-rw-r--r--htroot/ConfigProperties_p.html5
-rw-r--r--htroot/ConfigUpdate_p.html38
-rw-r--r--htroot/ConfigUpdate_p.java5
-rw-r--r--htroot/PerformanceMemory_p.html4
-rw-r--r--htroot/Tables_p.html4
-rw-r--r--htroot/env/base.css4
-rw-r--r--htroot/yacy/ui/css/yacyui-portalsearch.css2
9 files changed, 42 insertions, 34 deletions
diff --git a/htroot/ConfigAccounts_p.html b/htroot/ConfigAccounts_p.html
index bbdf71f02..50fb10b3a 100644
--- a/htroot/ConfigAccounts_p.html
+++ b/htroot/ConfigAccounts_p.html
@@ -51,8 +51,8 @@
<dt><label for="adminpw2">Repeat Peer Password:</label></dt>
<dd><input type="password" name="adminpw2" id="adminpw2" value="" size="16" maxlength="1024" /></dd>
</dl>
- </fieldset>
<input type="submit" name="setAdmin" value="Define Administrator" />
+ </fieldset>
</form>
</fieldset>
diff --git a/htroot/ConfigNetwork_p.html b/htroot/ConfigNetwork_p.html
index 47aba510c..b93c68442 100644
--- a/htroot/ConfigNetwork_p.html
+++ b/htroot/ConfigNetwork_p.html
@@ -51,10 +51,10 @@
#(commitRobinsonWithRemoteIndexing)#::<div class="commit">This Robinson Mode switches remote indexing on, but limits targets to peers within the same cluster. Remote indexing requests from peers within the same cluster are accepted.</div>#(/commitRobinsonWithRemoteIndexing)#
#(commitRobinsonWithoutRemoteIndexing)#::<div class="commit">This Robinson Mode does not allow any remote indexing (neither requests remote indexing, nor accepts it).</div>#(/commitRobinsonWithoutRemoteIndexing)#
#(commitPasswordWarning)#::<div class="error">With this configuration it is not allowed to authentify automatically from localhost! Please open the <a href="ConfigAccounts_p.html">Account Configuration</a> and set a new password.</div>#(/commitPasswordWarning)#
- <form name="NetworkForm" method="post" action="ConfigNetwork_p.html" enctype="multipart/form-data" accept-charset="UTF-8">
+ <form id="NetworkForm" method="post" action="ConfigNetwork_p.html" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<legend>
- <label for="domain">Network and Domain Specification</label>
+ <label>Network and Domain Specification</label>
</legend>
<p>
YaCy can operate a computing grid of YaCy peers or as a stand-alone node.
@@ -87,7 +87,7 @@
</form>
<fieldset>
<legend>
- <label for="p2p">Distributed Computing Network for Domain</label>
+ <label>Distributed Computing Network for Domain</label>
</legend>
<p>
@@ -96,7 +96,7 @@
a completely independent search engine instance, without any data exchange between your peer and other
peers, which we call a 'Robinson' peer.
</p>
- <form name="ConfigForm" method="post" action="ConfigNetwork_p.html" enctype="multipart/form-data" accept-charset="UTF-8">
+ <form id="ConfigForm" method="post" action="ConfigNetwork_p.html" enctype="multipart/form-data" accept-charset="UTF-8">
<fieldset>
<legend>
<input type="radio" name="network" id="p2p" onclick="EnableP2P()" value="p2p"#(p2p.checked)#:: checked="checked"#(/p2p.checked)# />
@@ -216,9 +216,9 @@
If you leave the field empty, no peer asks your peer. If you fill in a '*', your peer is always asked.
<input type="text" id="peertags" name="peertags" value="#[peertags]#" size="40" maxlength="80" />
</dd>
- </dl>
- </fieldset>
+ </dl>
<input type="submit" name="save" value="Save" />
+ </fieldset>
</form>
</fieldset>
#%env/templates/footer.template%#
diff --git a/htroot/ConfigProperties_p.html b/htroot/ConfigProperties_p.html
index 15dd5bc6b..540b3e3a6 100644
--- a/htroot/ConfigProperties_p.html
+++ b/htroot/ConfigProperties_p.html
@@ -1,11 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <style>
- .hidden{
- display: none;
- }
- </style>
<title>YaCy '#[clientname]#': Advanced Config</title>
#%env/templates/metas.template%#
<script type="text/javascript">
diff --git a/htroot/ConfigUpdate_p.html b/htroot/ConfigUpdate_p.html
index f8eeeaf09..429231abc 100644
--- a/htroot/ConfigUpdate_p.html
+++ b/htroot/ConfigUpdate_p.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
-#(forwardToSteering)#::<meta http-equiv="REFRESH" content="0; url=/Steering.html?update=1&releaseinstall=#[release]#">#(/forwardToSteering)#
<head>
+ #(forwardToSteering)#::<meta http-equiv="REFRESH" content="0; url=/Steering.html?update=1&amp;releaseinstall=#[release]#" />#(/forwardToSteering)#
<title>YaCy '#[clientname]#': System Update</title>
#%env/templates/metas.template%#
</head>
@@ -22,29 +22,33 @@
<dt>Current installed Release</dt>
<dd>#[versionpp]#</dd>
<dt><br />Available Releases</dt>
- <dd><form action="ConfigUpdate_p.html" method="get">
+ <dd><form action="ConfigUpdate_p.html" method="get"><p>
&nbsp;<select name="releasedownload">
#{availreleases}#
- <option #(selected)#::selected#(/selected)# value="#[url]#">#[name]# #(signatures)#(unsigned)::(signed)#(/signatures)#</option>
+ <option #(selected)#::selected="selected"#(/selected)# value="#[url]#">#[name]# #(signatures)#(unsigned)::(signed)#(/signatures)#</option>
#{/availreleases}#
</select>
&nbsp;&nbsp;<input type="submit" name="downloadRelease" value="Download Release" />
&nbsp;&nbsp;<input type="submit" name="checkRelease" value="Check for new Release" />
- </form></dd>
+ </p></form></dd>
<dt><br />Downloaded Releases</dt>
- <dd><form action="ConfigUpdate_p.html" method="get">
- &nbsp;<select name="releaseinstall">
+ <dd><form action="ConfigUpdate_p.html" method="get"><p>
+ #(downloadsAvailable)#
+ No downloaded releases available for deployment.
+ ::
+ &nbsp;<select name="releaseinstall">
+ #(/downloadsAvailable)#
#{downloadedreleases}#
- <option #(selected)#::selected#(/selected)# value="#[file]#">#[name]# #(signature)#(no signature)::(signed)#(/signature)#</option>
+ <option #(selected)#::selected="selected"#(/selected)# value="#[file]#">#[name]# #(signature)#(no signature)::(signed)#(/signature)#</option>
#{/downloadedreleases}#
- </select>
+ #(downloadsAvailable)#::</select>#(/downloadsAvailable)#
#(deployenabled)#::no&nbsp;automated installation on development environments::
- &nbsp;&nbsp;<input type="submit" name="update" value="Install Release" />
- &nbsp;&nbsp;<input type="submit" name="deleteRelease" value="Delete Release" />
- #(/deployenabled)#
- </form></dd>
+ &nbsp;&nbsp;<input type="submit" name="update" value="Install Release" #(buttonsActive)#disabled="disabled"::#(/buttonsActive)#/>
+ &nbsp;&nbsp;<input type="submit" name="deleteRelease" value="Delete Release" #(buttonsActive)#disabled="disabled"::#(/buttonsActive)#/>
+ #(/deployenabled)#
+ </p></form></dd>
<dt><br />Automatic Update</dt>
- <dd><form action="ConfigUpdate_p.html" method="get">
+ <dd><form action="ConfigUpdate_p.html" method="get"><p>
&nbsp;check for new releases, download if available and restart with downloaded release<br />
&nbsp;&nbsp;<input type="submit" name="autoUpdate" value="Check + Download + Install Release Now" /><br />
#(autoUpdate)#::
@@ -53,7 +57,7 @@
<div class="error">Omitting update because this is a development environment.</div>::
<div class="error">Omitting update because download of release #[downloadedRelease]# failed.</div>
#(/autoUpdate)#
- </form></dd>
+ </p></form></dd>
</dl>
</fieldset>
@@ -95,8 +99,8 @@
<input type="checkbox" name="onlySignedFiles" value="true" #(onlySignedFiles)#::checked="checked" #(/onlySignedFiles)#/>
only accept signed files
</dd>
- <dt><input type="submit" name="configSubmit" value="Submit"></dt>
- <dd>#(configCommit)#::<div class="commit">Accepted Changes.</div>#(/configCommit)#</dd>
+ <dt><input type="submit" name="configSubmit" value="Submit" /></dt>
+ <dd>#(configCommit)#&nbsp;::<div class="commit">Accepted Changes.</div>#(/configCommit)#</dd>
</dl>
</fieldset>
</form>
@@ -111,7 +115,7 @@
</fieldset>
::
You installed YaCy with a package manager. To update YaCy, use the package manager:<p>
- Debian: apt-get update &amp;&amp; apt-get install yacy
+ Debian: apt-get update &amp;&amp; apt-get install yacy</p>
::
#(/candeploy)#
diff --git a/htroot/ConfigUpdate_p.java b/htroot/ConfigUpdate_p.java
index 20f2244e8..34a774dc2 100644
--- a/htroot/ConfigUpdate_p.java
+++ b/htroot/ConfigUpdate_p.java
@@ -64,6 +64,7 @@ public class ConfigUpdate_p {
prop.put("candeploy_configCommit", "0");
prop.put("candeploy_autoUpdate", "0");
+ prop.put("candeploy_downloadsAvailable", "0");
if (post != null) {
// check if update is supposed to be installed and a release is defined
@@ -179,6 +180,10 @@ public class ConfigUpdate_p {
}
// latest downloaded release
yacyVersion dflt = (downloadedReleases.isEmpty()) ? null : downloadedReleases.last();
+ // check if there are any downloaded releases and if there are enable the update buttons
+ prop.put("candeploy_downloadsAvailable", (downloadedReleases.isEmpty()) ? "0" : "1");
+ prop.put("candeploy_deployenabled_buttonsActive", (downloadedReleases.isEmpty() || devenvironment) ? "0" : "1");
+
int relcount = 0;
for(yacyRelease release : downloadedReleases) {
prop.put("candeploy_downloadedreleases_" + relcount + "_name", ((release.isMainRelease()) ? "main" : "dev") + " " + release.getReleaseNr() + "/" + release.getSvn());
diff --git a/htroot/PerformanceMemory_p.html b/htroot/PerformanceMemory_p.html
index 07debe4dd..b3e533548 100644
--- a/htroot/PerformanceMemory_p.html
+++ b/htroot/PerformanceMemory_p.html
@@ -18,8 +18,8 @@
#%env/templates/submenuConfig.template%#
<h2>Performance Settings for Memory</h2>
- <p><img src="PerformanceGraph.png" name="graph" alt="PerformanceGraph"/></p>
- <p><form name="optionreloadGraph" action="" method="get"><input type="checkbox" name="option" id="autoreload"/> <label for="autoreload">refresh graph</label></form></p>
+ <p><img src="PerformanceGraph.png" id="graph" alt="PerformanceGraph"/></p>
+ <form id="optionreloadGraph" action="" method="get"><p><input type="checkbox" name="option" id="autoreload"/> <label for="autoreload">refresh graph</label></p></form>
<p><strong>Memory Usage:</strong></p>
<table border="0" cellpadding="2" cellspacing="1">
diff --git a/htroot/Tables_p.html b/htroot/Tables_p.html
index 0119b1d1b..b9a9055bf 100644
--- a/htroot/Tables_p.html
+++ b/htroot/Tables_p.html
@@ -51,12 +51,12 @@
</select>
entries,
</dt>
- <dd></dd>
+ <dd>&nbsp;</dd>
<dt>
search rows for
<input type="text" name="search" value="#[pattern]#" />
</dt>
- <dd></dd>
+ <dd>&nbsp;</dd>
</dl>
</fieldset>
</form>
diff --git a/htroot/env/base.css b/htroot/env/base.css
index 045e7650f..0245529a0 100644
--- a/htroot/env/base.css
+++ b/htroot/env/base.css
@@ -141,6 +141,10 @@ tt, *.tt {
font-size:90%;
}
+.hidden {
+ display:hidden;
+}
+
/* .snippetLoaded {
font-style:italic;
color: #666;
diff --git a/htroot/yacy/ui/css/yacyui-portalsearch.css b/htroot/yacy/ui/css/yacyui-portalsearch.css
index 61298072d..ece9d74bd 100644
--- a/htroot/yacy/ui/css/yacyui-portalsearch.css
+++ b/htroot/yacy/ui/css/yacyui-portalsearch.css
@@ -4,7 +4,7 @@
.ui-dialog .ui-dialog-buttonpane button {
font-size: 14px;
}
-#yacylivesearch form { display: inline; }
+#yacylivesearch form * { display: inline; }
#ysearch .fancy {
height:18px;
background: white;