use of teammates.ui.template.InstructorHomeFeedbackSessionRow in project teammates by TEAMMATES.
the class InstructorHomeCourseAjaxPageData method createSessionRows.
private List<HomeFeedbackSessionRow> createSessionRows(List<FeedbackSessionAttributes> sessions, InstructorAttributes instructor) {
List<HomeFeedbackSessionRow> rows = new ArrayList<>();
for (FeedbackSessionAttributes session : sessions) {
InstructorHomeFeedbackSessionRow row = new InstructorHomeFeedbackSessionRow(sanitizeForHtml(session.getFeedbackSessionName()), getInstructorSubmissionsTooltipForFeedbackSession(session), getInstructorPublishedTooltipForFeedbackSession(session), getInstructorSubmissionStatusForFeedbackSession(session), getInstructorPublishedStatusForFeedbackSession(session), TimeHelper.formatDateTimeForInstructorHomePage(session.getStartTimeLocal()), session.getStartTimeInIso8601UtcFormat(), TimeHelper.formatDateTimeForSessions(session.getStartTime(), session.getTimeZone()), TimeHelper.formatDateTimeForInstructorHomePage(session.getEndTimeLocal()), session.getEndTimeInIso8601UtcFormat(), TimeHelper.formatDateTimeForSessions(session.getEndTime(), session.getTimeZone()), getInstructorFeedbackStatsLink(session.getCourseId(), session.getFeedbackSessionName()), getInstructorFeedbackSessionActions(session, Const.ActionURIs.INSTRUCTOR_HOME_PAGE, instructor));
rows.add(row);
}
return rows;
}
Aggregations