new alert symbols

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@473 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2005-08-02 00:16:19 +00:00
parent 7e3e9ba0de
commit 083c8ddc69
14 changed files with 21 additions and 18 deletions

View File

@ -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) {};

View File

@ -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)#

View File

@ -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"));

BIN
htroot/env/grafics/broadcast.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

BIN
htroot/env/grafics/crawl.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 824 B

After

Width:  |  Height:  |  Size: 824 B

BIN
htroot/env/grafics/message.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

BIN
htroot/env/grafics/profile.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

BIN
htroot/env/grafics/wiki.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

View File

@ -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>

View File

@ -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);

View File

@ -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((