boolean odd = true;
for (final UpdateEntry updateEntry : updateEntries) {
if (showOldUpdateScripts == false && updateEntry.getPreCheckStatus() == UpdatePreCheckStatus.ALREADY_UPDATED) {
continue;
}
final Version version = updateEntry.getVersion();
final WebMarkupContainer item = new WebMarkupContainer(scriptRows.newChildId());
scriptRows.add(item);
if (odd == true) {
item.add(AttributeModifier.append("class", "odd"));
} else {
item.add(AttributeModifier.append("class", "even"));
}
odd = !odd;
item.add(new Label("regionId", updateEntry.getRegionId()));
if (updateEntry.isInitial() == true) {
item.add(new Label("version", "initial"));
} else {
item.add(new Label("version", version.toString()));
}
final String description = updateEntry.getDescription();
item.add(new Label("description", StringUtils.isBlank(description) == true ? "" : description));
item.add(new Label("date", updateEntry.getDate()));
final String preCheckResult = updateEntry.getPreCheckResult();