Skip to content

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

new alert symbols

orbiter083c8ddc693b
diff --git a/htroot/Messages_p.java b/htroot/Messages_p.java
index a8dc4dbd6..c214d8e4d 100644
--- a/htroot/Messages_p.java
+++ b/htroot/Messages_p.java
@@ -76,7 +76,7 @@ public class Messages_p {
messageBoard.entry message;
// first reset notification
- File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifierInactive.gif");
+ File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/empty.gif");
File notifierDest = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifier.gif");
try {serverFileUtils.copy(notifierSource, notifierDest);} catch (IOException e) {};
diff --git a/htroot/Network.html b/htroot/Network.html
index d44deb4c9..4a32d3edd 100644
--- a/htroot/Network.html
+++ b/htroot/Network.html
@@ -38,7 +38,7 @@
<p>Showing #[num]# entries from a total of #[total]# peers.<br>
<table border="0" cellpadding="2" cellspacing="1">
<tr class="TableHeader" valign="bottom">
-<td class="small">send&nbsp;<b>M</b>essage/<br>show&nbsp;<b>P</b>rofile/<br>edit&nbsp;<b>W</b>iki<br>(* = updated)</td>
+<td class="small">send&nbsp;<b>M</b>essage/<br>show&nbsp;<b>P</b>rofile/<br>edit&nbsp;<b>W</b>iki<br>&nbsp;</td>
<td class="small"><b>Name</b><br>&nbsp;</td>
#(complete)#::
<td class="small"><b>Address</b><br>&nbsp;</td>
@@ -61,10 +61,9 @@
<td class="small"><b>#Connects<br>per hour</b><br>&nbsp;</td></tr>
#{list}#
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">
-<td class="small"><a href="MessageSend_p.html?hash=#[hash]#" class="small">m</a>&nbsp;&nbsp;&nbsp;
- <a href="ViewProfile.html?hash=#[hash]#" class="small">p</a>#(updatedProfile)#&nbsp;::*#(/updatedProfile)#&nbsp;&nbsp;
- <a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small">w</a>#(updatedWiki)#&nbsp;::*#(/updatedWiki)#&nbsp;&nbsp;
- #(isCrawling)#::<a href="#[startURL]#" class="small">crawl</a>#(/isCrawling)#
+<td class="small"><a href="MessageSend_p.html?hash=#[hash]#" class="small">m</a>&nbsp;&nbsp;
+ <a href="ViewProfile.html?hash=#[hash]#" class="small">p</a>&nbsp;&nbsp;
+ <a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small">w</a>&nbsp;&nbsp;#[alert]#
</td>
<td class="small"><a href="http://www.#[fullname]#.yacy" class="small">#[shortname]#</a></td>
#(complete)#
diff --git a/htroot/Network.java b/htroot/Network.java
index e9912aeb3..03c50296b 100644
--- a/htroot/Network.java
+++ b/htroot/Network.java
@@ -257,27 +257,25 @@ public class Network {
} else {
prop.put("table_list_"+conCount+"_dark", ((dark) ? 1 : 0) ); dark=!dark;
}
- prop.put("table_list_"+conCount+"_updatedProfile", (((updatedProfile.contains(seed.hash))) ? 1 : 0));
+ String alert = "";
+ if (updatedProfile.contains(seed.hash)) {
+ alert += "<a href=\"ViewProfile.html?hash=" + seed.hash + "\"><img border=\"0\" src=\"/env/grafics/profile.gif\" align=\"bottom\"></a>";
+ }
if ((wikiPage = (String) updatedWiki.get(seed.hash)) == null) {
- prop.put("table_list_"+conCount+"_updatedWiki", 0);
prop.put("table_list_"+conCount+"_updatedWikiPage", "");
} else {
- prop.put("table_list_"+conCount+"_updatedWiki", 1);
prop.put("table_list_"+conCount+"_updatedWikiPage", "?page=" + wikiPage);
+ alert += "<a href=\"http://" + seed.get("Name", "deadlink") + ".yacy/Wiki.html?page=" + wikiPage + "\"><img border=\"0\" src=\"/env/grafics/wiki.gif\" align=\"bottom\"></a>";
}
try {
PPM = Integer.parseInt(seed.get("ISpeed", "-"));
} catch (NumberFormatException ee) {
PPM = 0;
}
- if (((startURL = (String) isCrawling.get(seed.hash)) == null) || (PPM < 10)) {
- prop.put("table_list_"+conCount+"_isCrawling", 0);
- prop.put("table_list_"+conCount+"_isCrawling_startURL", "");
- } else {
- prop.put("table_list_"+conCount+"_isCrawling", 1);
- prop.put("table_list_"+conCount+"_isCrawling_startURL", startURL);
+ if (((startURL = (String) isCrawling.get(seed.hash)) != null) && (PPM >= 10)) {
+ alert += "<a href=\"" + startURL + "\"><img border=\"0\" src=\"/env/grafics/crawl.gif\" align=\"bottom\"></a>";
}
-
+ prop.put("table_list_"+conCount+"_alert", alert);
long links, words;
try {
links = Long.parseLong(seed.get("LCount", "0"));
diff --git a/htroot/env/grafics/broadcast.gif b/htroot/env/grafics/broadcast.gif
new file mode 100644
index 000000000..4ca560946
Binary files /dev/null and b/htroot/env/grafics/broadcast.gif differ
diff --git a/htroot/env/grafics/crawl.gif b/htroot/env/grafics/crawl.gif
new file mode 100644
index 000000000..3bfd7dc5f
Binary files /dev/null and b/htroot/env/grafics/crawl.gif differ
diff --git a/htroot/env/grafics/notifier.gif b/htroot/env/grafics/empty.gif
similarity index 100%
rename from htroot/env/grafics/notifier.gif
rename to htroot/env/grafics/empty.gif
diff --git a/htroot/env/grafics/message.gif b/htroot/env/grafics/message.gif
new file mode 100644
index 000000000..1a5520f05
Binary files /dev/null and b/htroot/env/grafics/message.gif differ
diff --git a/htroot/env/grafics/notifierActive.gif b/htroot/env/grafics/notifierActive.gif
deleted file mode 100644
index 761a15a99..000000000
Binary files a/htroot/env/grafics/notifierActive.gif and /dev/null differ
diff --git a/htroot/env/grafics/notifierInactive.gif b/htroot/env/grafics/notifierInactive.gif
deleted file mode 100644
index 330c7e881..000000000
Binary files a/htroot/env/grafics/notifierInactive.gif and /dev/null differ
diff --git a/htroot/env/grafics/profile.gif b/htroot/env/grafics/profile.gif
new file mode 100644
index 000000000..c1a90d0fa
Binary files /dev/null and b/htroot/env/grafics/profile.gif differ
diff --git a/htroot/env/grafics/wiki.gif b/htroot/env/grafics/wiki.gif
new file mode 100644
index 000000000..dd1f1add4
Binary files /dev/null and b/htroot/env/grafics/wiki.gif differ
diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template
index 0ec302545..e725e307e 100644
--- a/htroot/env/templates/header.template
+++ b/htroot/env/templates/header.template
@@ -54,7 +54,7 @@
<tr><td class="MenuItem">&nbsp;<a href="/www/" class="MenuItemLink">Home&nbsp;Page</a></td></tr>
<tr><td class="MenuItem">&nbsp;<a href="/share/" class="MenuItemLink">File&nbsp;Share</a></td></tr>
<tr><td class="MenuItem">&nbsp;<a href="/Wiki.html" class="MenuItemLink">Wiki</a></td></tr>
- <tr><td class="MenuItem">&nbsp;<img border="0" src="/env/grafics/lock.gif" align="top">&nbsp;<a href="/Messages_p.html" class="MenuItemLink">Messages</a>&nbsp;<img border="0" src="/env/grafics/notifier.gif" align="bottom"></td></tr>
+ <tr><td class="MenuItem">&nbsp;<img border="0" src="/env/grafics/lock.gif" align="top">&nbsp;<a href="/Messages_p.html" class="MenuItemLink">Messages</a>&nbsp;<img border="0" src="/env/grafics/notifier.gif" align="center"></td></tr>
<tr><td class="MenuItem">&nbsp;<img border="0" src="/env/grafics/lock.gif" align="top">&nbsp;<a href="/EditProfile_p.html" class="MenuItemLink">Personal Profile</a></td></tr>
<tr><td class="MenuSpacer"></td></tr>
diff --git a/htroot/yacy/message.java b/htroot/yacy/message.java
index 74a700b6e..4fe3522ff 100644
--- a/htroot/yacy/message.java
+++ b/htroot/yacy/message.java
@@ -134,7 +134,7 @@ public class message {
messageForwardingViaEmail(env,msgEntry);
// finally write notification
- File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifierActive.gif");
+ File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/message.gif");
File notifierDest = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifier.gif");
try {
serverFileUtils.copy(notifierSource, notifierDest);
diff --git a/source/yacy.java b/source/yacy.java
index 16f7d9ddd..635b76256 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -222,6 +222,12 @@ public final class yacy {
File htDocsPath = new File(sb.getRootPath(), sb.getConfig("htDocsPath", "DATA/HTDOCS"));
File htTemplatePath = new File(sb.getRootPath(), sb.getConfig("htTemplatePath","htdocs"));
+ // create default notifier picture
+ if (!((new File(htRootPath, "env/pictures/notifier.gif")).exists())) try {
+ serverFileUtils.copy(new File(htRootPath, "env/pictures/empty.gif"),
+ new File(htRootPath, "env/pictures/notifier.gif"));
+ } catch (IOException e) {}
+
if (!(htDocsPath.exists())) htDocsPath.mkdir();
File htdocsDefaultReadme = new File(htDocsPath, "readme.txt");
if (!(htdocsDefaultReadme.exists())) try {serverFileUtils.write((