new alert symbols
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@473 6c8d7289-2bf4-0310-a012-ef5d649a1542
|
@ -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) {};
|
||||
|
||||
|
|
|
@ -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 <b>M</b>essage/<br>show <b>P</b>rofile/<br>edit <b>W</b>iki<br>(* = updated)</td>
|
||||
<td class="small">send <b>M</b>essage/<br>show <b>P</b>rofile/<br>edit <b>W</b>iki<br> </td>
|
||||
<td class="small"><b>Name</b><br> </td>
|
||||
#(complete)#::
|
||||
<td class="small"><b>Address</b><br> </td>
|
||||
|
@ -61,10 +61,9 @@
|
|||
<td class="small"><b>#Connects<br>per hour</b><br> </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>
|
||||
<a href="ViewProfile.html?hash=#[hash]#" class="small">p</a>#(updatedProfile)# ::*#(/updatedProfile)#
|
||||
<a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small">w</a>#(updatedWiki)# ::*#(/updatedWiki)#
|
||||
#(isCrawling)#::<a href="#[startURL]#" class="small">crawl</a>#(/isCrawling)#
|
||||
<td class="small"><a href="MessageSend_p.html?hash=#[hash]#" class="small">m</a>
|
||||
<a href="ViewProfile.html?hash=#[hash]#" class="small">p</a>
|
||||
<a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small">w</a> #[alert]#
|
||||
</td>
|
||||
<td class="small"><a href="http://www.#[fullname]#.yacy" class="small">#[shortname]#</a></td>
|
||||
#(complete)#
|
||||
|
|
|
@ -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
After Width: | Height: | Size: 983 B |
BIN
htroot/env/grafics/crawl.gif
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 824 B After Width: | Height: | Size: 824 B |
BIN
htroot/env/grafics/message.gif
vendored
Normal file
After Width: | Height: | Size: 996 B |
BIN
htroot/env/grafics/notifierActive.gif
vendored
Before Width: | Height: | Size: 836 B |
BIN
htroot/env/grafics/notifierInactive.gif
vendored
Before Width: | Height: | Size: 824 B |
BIN
htroot/env/grafics/profile.gif
vendored
Normal file
After Width: | Height: | Size: 940 B |
BIN
htroot/env/grafics/wiki.gif
vendored
Normal file
After Width: | Height: | Size: 943 B |
2
htroot/env/templates/header.template
vendored
|
@ -54,7 +54,7 @@
|
|||
<tr><td class="MenuItem"> <a href="/www/" class="MenuItemLink">Home Page</a></td></tr>
|
||||
<tr><td class="MenuItem"> <a href="/share/" class="MenuItemLink">File Share</a></td></tr>
|
||||
<tr><td class="MenuItem"> <a href="/Wiki.html" class="MenuItemLink">Wiki</a></td></tr>
|
||||
<tr><td class="MenuItem"> <img border="0" src="/env/grafics/lock.gif" align="top"> <a href="/Messages_p.html" class="MenuItemLink">Messages</a> <img border="0" src="/env/grafics/notifier.gif" align="bottom"></td></tr>
|
||||
<tr><td class="MenuItem"> <img border="0" src="/env/grafics/lock.gif" align="top"> <a href="/Messages_p.html" class="MenuItemLink">Messages</a> <img border="0" src="/env/grafics/notifier.gif" align="center"></td></tr>
|
||||
<tr><td class="MenuItem"> <img border="0" src="/env/grafics/lock.gif" align="top"> <a href="/EditProfile_p.html" class="MenuItemLink">Personal Profile</a></td></tr>
|
||||
<tr><td class="MenuSpacer"></td></tr>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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((
|
||||
|
|