if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_OUTDATED) { outdatedResources.add(notificationCause); } else if (notificationCause.getDate().before(tomorrow.getTime())) { resourcesNextDay.add(notificationCause); } else {
if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_OUTDATED) { outdatedResources.add(notificationCause); } else if (notificationCause.getDate().before(tomorrow.getTime())) { resourcesNextDay.add(notificationCause); } else {
result.append("</td><td><div style=\"white-space:nowrap;padding-left:10px;padding-right:10px;\">"); if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_EXPIRES) { result.append(m_messages.key(Messages.GUI_EXPIRES_AT_1, new Object[] {notificationCause.getDate()})); result.append("</div></td>"); appendConfirmLink(result, notificationCause); appendModifyLink(result, notificationCause); } else if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_RELEASE) { result.append(m_messages.key(Messages.GUI_RELEASE_AT_1, new Object[] {notificationCause.getDate()})); result.append("</div></td>"); appendConfirmLink(result, notificationCause); appendModifyLink(result, notificationCause); } else if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_UPDATE_REQUIRED) { result.append(m_messages.key(Messages.GUI_UPDATE_REQUIRED_1, new Object[] {notificationCause.getDate()})); result.append("</div></td>"); appendConfirmLink(result, notificationCause); } else { result.append(m_messages.key(Messages.GUI_UNCHANGED_SINCE_1, new Object[] {new Integer( CmsDateUtil.getDaysPassedSince(notificationCause.getDate()))})); result.append("</div></td>"); appendConfirmLink(result, notificationCause);
result.append("</td><td><div style=\"white-space:nowrap;padding-left:10px;padding-right:10px;\">"); if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_EXPIRES) { result.append(m_messages.key(Messages.GUI_EXPIRES_AT_1, new Object[] {notificationCause.getDate()})); result.append("</div></td>"); appendConfirmLink(result, notificationCause); appendModifyLink(result, notificationCause); } else if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_RELEASE) { result.append(m_messages.key(Messages.GUI_RELEASE_AT_1, new Object[] {notificationCause.getDate()})); result.append("</div></td>"); appendConfirmLink(result, notificationCause); appendModifyLink(result, notificationCause); } else if (notificationCause.getCause() == CmsExtendedNotificationCause.RESOURCE_UPDATE_REQUIRED) { result.append(m_messages.key(Messages.GUI_UPDATE_REQUIRED_1, new Object[] {notificationCause.getDate()})); result.append("</div></td>"); appendConfirmLink(result, notificationCause); result.append(m_messages.key( Messages.GUI_UNCHANGED_SINCE_1, new Object[] {new Integer(CmsDateUtil.getDaysPassedSince(notificationCause.getDate()))})); result.append("</div></td>"); appendConfirmLink(result, notificationCause);