Search in sources :

Example 1 with InstructorHomeFeedbackSessionRow

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;
}
Also used : FeedbackSessionAttributes(teammates.common.datatransfer.attributes.FeedbackSessionAttributes) InstructorHomeFeedbackSessionRow(teammates.ui.template.InstructorHomeFeedbackSessionRow) InstructorHomeFeedbackSessionRow(teammates.ui.template.InstructorHomeFeedbackSessionRow) HomeFeedbackSessionRow(teammates.ui.template.HomeFeedbackSessionRow) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 FeedbackSessionAttributes (teammates.common.datatransfer.attributes.FeedbackSessionAttributes)1 HomeFeedbackSessionRow (teammates.ui.template.HomeFeedbackSessionRow)1 InstructorHomeFeedbackSessionRow (teammates.ui.template.InstructorHomeFeedbackSessionRow)1