}
private void addComments(final ChangeDetail detail) {
comments.clear();
final AccountInfoCache accts = detail.getAccounts();
final List<ChangeMessage> msgList = detail.getMessages();
HorizontalPanel title = new HorizontalPanel();
title.setWidth("100%");
title.add(new Label(Util.C.changeScreenComments()));
if (msgList.size() > 1) {
title.add(messagesMenuBar());
}
title.setStyleName(Gerrit.RESOURCES.css().blockHeader());
comments.add(title);
final long AGE = 7 * 24 * 60 * 60 * 1000L;
final Timestamp aged = new Timestamp(System.currentTimeMillis() - AGE);
for (int i = 0; i < msgList.size(); i++) {
final ChangeMessage msg = msgList.get(i);
final AccountInfo author;
if (msg.getAuthor() != null) {
author = accts.get(msg.getAuthor());
} else {
final Account gerrit = new Account(null);
gerrit.setFullName(Util.C.messageNoAuthor());
author = new AccountInfo(gerrit);
}