Fixed one typo and added a few options to handle messages when messages get displayed.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@309 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
low012 2005-06-20 23:35:42 +00:00
parent 5728cdf8b5
commit 10f6f19c08
2 changed files with 8 additions and 1 deletions

View File

@ -131,7 +131,7 @@ public class MessageSend_p {
if (subject.length() > 100) subject = subject.substring(0, 100);
if (message.length() > messagesize) message = message.substring(0, messagesize);
HashMap result = yacyClient.postMessage(hash, subject, message.getBytes());
body += "<p>Your message has been send. The target peer respondet:</p>";
body += "<p>Your message has been sent. The target peer respondet:</p>";
body += "<p><i>" + result.get("response") + "</i></p>";
} catch (NumberFormatException e) {
// "unresolved pattern", the remote peer is alive but had an exception

View File

@ -123,6 +123,13 @@ public class Messages_p {
messages += "<tr><td class=\"MenuHeader\">Send Date:</td><td class=\"MessageBackground\">" + dateString(message.date()) + "</td></tr>";
messages += "<tr><td class=\"MenuHeader\">Subject:</td><td class=\"MessageBackground\">" + message.subject() + "</td></tr>";
messages += "<tr><td class=\"MessageBackground\" colspan=\"2\">" + new String(message.message()) + "</td></tr>";
messages += "<tr><td class=\"MenuHeader\">Action:</td>" +
"<td class=\"MessageBackground\">" +
"<a href=\"Messages_p.html\">inbox</a>&nbsp;/&nbsp;" +
"<a href=\"MessageSend_p.html?hash=" + message.authorHash() +
"&subject=Re: " + message.subject() + "\">reply</a>&nbsp;/&nbsp;" +
"<a href=\"Messages_p.html?action=delete&object=" + key + "\">delete</a>" +
"</td></tr>";
messages += "</table>";
}