use of org.activityinfo.model.form.RecordHistoryEntry in project activityinfo by bedatadriven.
the class SiteHistoryTab method render.
private void render(SiteDTO site, List<RecordHistoryEntry> entries) {
SafeHtmlBuilder html = new SafeHtmlBuilder();
if (site.getDateCreated().before(HISTORY_AVAILABLE_FROM)) {
appendItemSpan(html, I18N.MESSAGES.siteHistoryDateCreated(site.getDateCreated()));
html.appendHtmlConstant("<br>");
html.appendEscaped(I18N.MESSAGES.siteHistoryAvailableFrom(HISTORY_AVAILABLE_FROM));
}
for (RecordHistoryEntry entry : entries) {
appendTo(entry, html);
}
content.setHtml(html.toSafeHtml());
}
Aggregations