HTMLNode subscribeCell = row.addChild("td", new String[] { "align" }, new String[] { "center" });
HTMLNode unsubscribeCell = row.addChild("td", new String[] { "align" }, new String[] { "center" });
try {
SubscribedBoard subscribedBoard = messageManager.getSubscription(mOwnIdentity, board.getName());
// We are subscribed to that board so we can display some more information.
nameCell.addChild(new HTMLNode("a", "href", BoardPage.getURI(board), board.getName()));
try {
latestMessageCell.addChild("#", dateFormat.format(subscribedBoard.getLatestMessage().getMessageDate()));
} catch(NoSuchMessageException e) {
latestMessageCell.addChild("#", "-");
}
messageCountCell.addChild("#", Integer.toString(subscribedBoard.messageCount()));
HTMLNode unsubscribeForm = addFormChild(unsubscribeCell, Freetalk.PLUGIN_URI + "/SelectBoards" + "#" + board.getName(), "Unsubscribe");
unsubscribeForm.addChild("input", new String[] {"type", "name", "value"}, new String[] { "hidden", "OwnIdentityID", mOwnIdentity.getID()});
unsubscribeForm.addChild("input", new String[] {"type", "name", "value"}, new String[] { "hidden", "BoardName", board.getName()});
if(languageFiltered) unsubscribeForm.addChild("input", new String[] {"type", "name", "value"}, new String[] { "hidden", "BoardLanguage", languageFilter});